;/*FB_PKG_DELIM*/ __d("AbstractActionList.react",["ReactFragment","react"],(function(a,b,c,d,e,f,g){var h,i=h||d("react"),j=i.jsx("span",{"aria-hidden":"true",children:" \xb7 "});a=function(a){function b(){return a.apply(this,arguments)||this}babelHelpers.inheritsLoose(b,a);var c=b.prototype;c.render=function(){var a=!0,b=i.Children.map(this.props.children,function(b){if(!b)return b;if(a){a=!1;return b}return d("ReactFragment").create({BULLET:j,child:b})});return i.jsx("div",babelHelpers["extends"]({},this.props,{children:b}))};return b}(i.Component);g["default"]=a}),98); __d("PopoverMenuOverlappingBorder",["cx","CSS","DOM","Style","shield","vulture"],(function(a,b,c,d,e,f,g){a=function(){"use strict";function a(a){this._popoverMenu=a,this._popover=a.getPopover(),this._triggerElem=a.getTriggerElem()}var c=a.prototype;c.enable=function(){this._setMenuSubscription=this._popoverMenu.subscribe("setMenu",b("shield")(this._onSetMenu,this))};c.disable=function(){b("vulture")("c1Xg7Zk6M6zk5f8YRsCnVUwEUaE="),this._popoverMenu.unsubscribe(this._setMenuSubscription),this._setMenuSubscription=null,this._removeBorderSubscriptions(),this._removeShortBorder()};c._onSetMenu=function(){this._removeBorderSubscriptions();this._menu=this._popoverMenu.getMenu();this._renderShortBorder(this._menu.getRoot());this._showSubscription=this._popover.subscribe("show",b("shield")(this._updateBorder,this));var a=this._updateBorder.bind(this);this._menuSubscription=this._menu.subscribe(["change","resize"],function(){setTimeout(a,0)});this._updateBorder()};c._updateBorder=function(){var a=this._menu.getRoot(),c=this._triggerElem.offsetWidth;a=Math.max(a.offsetWidth-c,0);b("Style").set(this._shortBorder,"width",a+"px")};c._renderShortBorder=function(a){this._shortBorder=b("DOM").create("div",{className:"_54hx"}),b("DOM").appendContent(a,this._shortBorder),b("CSS").addClass(a,"_54hy")};c._removeShortBorder=function(){b("vulture")("mUEqN5uD9xiO5Wl3zq4W1rK65jo="),this._shortBorder&&(b("DOM").remove(this._shortBorder),this._shortBorder=null,b("CSS").removeClass(this._popoverMenu.getMenu().getRoot(),"_54hy"))};c._removeBorderSubscriptions=function(){this._showSubscription&&(this._popover.unsubscribe(this._showSubscription),this._showSubscription=null),this._menuSubscription&&(this._menu.unsubscribe(this._menuSubscription),this._menuSubscription=null)};return a}();Object.assign(a.prototype,{_shortBorder:null,_setMenuSubscription:null,_showSubscription:null,_menuSubscription:null});e.exports=a}),null); __d("deepCompare",[],(function(a,b,c,d,e,f){"use strict";function g(a,b){if(a===b)return!0;if(!(a instanceof Object)||!(b instanceof Object))return!1;if(a.constructor!==b.constructor)return!1;if(Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return!1;var c={},d=0;for(var e=0,f=a.length;e=i){this.$13();return this.$2}this.$7++;this.$14();this.$6=new(b("AsyncRequest"))(k).setHandler(function(b){a.$6=null,a.$5=!0,a.$15(),a.$1(b.payload),a.$3()}).setErrorHandler(function(){a.$6=null,a.$8++,a.$16()}).setTimeoutHandler(j,function(){a.$6=null,a.$9++,a.$17(),a.fetchAll()}).setAllowCrossPageTransition(!0);this.$6.send();return this.$2};c.isBootstrapped=function(){return this.$5};c.isBootstrapping=function(){return!!this.$6};c.getAttemptCount=function(){return this.$7};c.getErrorCount=function(){return this.$8};c.getTimeoutCount=function(){return this.$9};c.$12=function(){this.$10||((h||(h=b("ODS"))).bumpEntityKey(3303,"chat.web","typeahead.bootstrap.starts"),this.$10=!0)};c.$14=function(){(h||(h=b("ODS"))).bumpEntityKey(3303,"chat.web","typeahead.bootstrap.attempts")};c.$15=function(){(h||(h=b("ODS"))).bumpEntityKey(3303,"chat.web","typeahead.bootstrap.successes"),this.$7>1&&(h||(h=b("ODS"))).bumpEntityKey(3303,"chat.web","typeahead.bootstrap.successes_after_retries")};c.$16=function(){(h||(h=b("ODS"))).bumpEntityKey(3303,"chat.web","typeahead.bootstrap.errors")};c.$17=function(){(h||(h=b("ODS"))).bumpEntityKey(3303,"chat.web","typeahead.bootstrap.timeouts")};c.$13=function(){this.$11||((h||(h=b("ODS"))).bumpEntityKey(3303,"chat.web","typeahead.bootstrap.giveups"),this.$11=!0,this.$4())};return a}();e.exports=a}),null); __d("XChatUserInfoAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/chat/user_info/",{ids:{type:"IntVector",defaultValue:[]}})}),null); __d("ShortProfiles",["AjaxLoader","CurrentUser","ShortProfilesBootstrapper","URI","XChatUserInfoAsyncController","emptyFunction"],(function(a,b,c,d,e,f,g){"use strict";var h,i=null,j=new(c("AjaxLoader"))(c("XChatUserInfoAsyncController").getURIBuilder().getURI().toString(),"profiles");function a(a,b){k([a],function(c){return b(c[a],a)})}function k(a,b){j.get(a,b||c("emptyFunction"))}function l(a){return j.getNow(a)||null}function b(a){var b={};a.forEach(function(a){return b[a]=l(a)});return b}function d(){return j.getCachedKeys()}function e(){return!!i&&i.isBootstrapped()}function f(){i||(i=new(c("ShortProfilesBootstrapper"))(function(a){j.set(a)}));return i.fetchAll()}function m(a,b){var c={};c[a]=b;n(c)}function n(a){if(c("CurrentUser").isWorkUser()){var b={};Object.keys(a).forEach(function(d){var e=a[d];(e.type!=="fb4c"||!e.uri)&&(b[d]=e);var f=new(h||(h=c("URI")))(e.uri).setDomain("").setProtocol("").toString();b[d]=babelHelpers["extends"]({},e,{uri:f})});a=b}j.set(a)}g.get=a;g.getMulti=k;g.getNow=l;g.getMultiNow=b;g.getCachedProfileIDs=d;g.hasAll=e;g.fetchAll=f;g.set=m;g.setMulti=n}),98); __d("ActorSelector.react",["cx","Arbiter","BizSiteIdentifier.brands","BootloadedComponent.react","Bootloader","Event","JSResource","PageVoiceDropdownSelector.react","PagesCalloutDispatcher","ReactDOM_DEPRECATED","ShortProfiles","TooltipData","emptyFunction","getObjectValues","goURI","joinClasses","prop-types","react","stringRefShim","tidyEvent","vulture"],(function(a,b,c,d,e,f,g){var h,i=h||b("react"),j=500;a=function(a){"use strict";function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g0?!0:!1},getUnloadedCommentsCount:function(){return r.totalCount-p.length},getDialogWidth:function(){return Math.min(document.body.offsetWidth-10,M.isMobile()?320:445)},dispatcherIndex:c("DevxFluxDispatcher").register(function(a){G(a.action),I(a)}),init:function(a,b,c,d){r=b,M.updateCommentData(a,c,r.userID),Object.keys(r.actors).forEach(function(a){return q[a]=r.actors[a]}),M.setActor(r.userID),z.ranking_allowed=d},updateCommentData:function(a,b,c){p=a.commentIDs,Object.assign(q,M.initComments(p,a.idMap)),z.ordering=b,M.initActorLikeState(M.getCommentIDsIncludingReplies(p),c)},getCommentIDsIncludingReplies:function(a){var b=a;p.forEach(function(a){a=q[a].public_replies;if(!a)return;a=a.commentIDs;if(!a)return;b=b.concat(a)});return b},initActorLikeState:function(a,b){var c=F[b]?F[b].hasLiked:{},d=F[b]?F[b].canLike:{};a.forEach(function(a){a=q[a];c[a.id]=!!a.hasLiked;d[a.id]=!!a.canLike});F[b]={hasLiked:c,canLike:d}},initComment:function(a){a.collapsed=!1;a.editor=!1;a.composer=!1;a.deleted=!1;a.flagged=!1;return a},initComments:function(a,b){a.forEach(function(a){return b[a]=M.initComment(b[a])});return b},emit:void 0,addListener:void 0,removeCurrentListener:void 0,ActionHandler:void 0};c("mixInEventEmitter")(M,a);var N={ban:function(a){var b=M.getByID(a);b.deleted=!0;M.emit("change");b=c("XPluginCommentsBanAuthorAsyncController").getURIBuilder().setString("comment_id",a).getURI();new(c("AsyncRequest"))(b).setMethod("POST").setData({ban:!0,source:"url"}).send()},hide:function(a){var b=M.getByID(a);b.deleted=!0;M.emit("change");b=c("XPluginCommentsHideCommentAsyncController").getURIBuilder().setInt("url_id",r.targetFBID).setEnum("action",c("DeveloperCommentsModerationAction").DELETE).setEnum("type",c("DeveloperCommentsModerationType").APPROVED).getURI();new(c("AsyncRequest"))(b).setData({comment_ids:[a]}).setMethod("POST").send()},addComment:function(){var a=M.getUser().id,b=M.getCreateComposerContent(),e=N._getAttachmentFBID(M.getCreateComposerAttachment()),f=d("ActorURI").create(c("XPluginCommentsCreateCommentAsyncController").getURIBuilder().setInt("target_id",r.targetFBID).getURI(),a);new(c("AsyncRequest"))(f).setData({app_id:r.appID,text:b.encodedValue,attached_photo_fbid:e.photoFBID,attached_sticker_fbid:e.stickerFBID,post_to_feed:M.getPostToFeed()&&!M.getDisablePostToFeed(),privacy_option:M.getPrivacyOption(),iframe_referer:r.iframeReferer}).setMethod("POST").setHandler(function(c){c=c.payload;var d=c.commentID;N._prependComment(c.idMap[d]);M.initActorLikeState([d],a);delete A[l];M.emit("composerCommentAdded",{});L("comment.create",{commentID:d,message:b.visibleValue});c.sentryAction&&M.emit("sentryAction",c.sentryAction,d)}).setErrorHandler(function(a){delete q[l],p.shift(),M.updateCommentsCount(-1),M.emit("change"),M.emit("postError",a)}).send();N._prependComment({authorID:r.user.id,targetID:r.targetFBID,body:{text:b.visibleValue}});M.updateCommentsCount(1)},addReply:function(a){var b=M.getUser().id,e=M.getCreateComposerContent(a),f=N._getAttachmentFBID(M.getCreateComposerAttachment(a)),g=d("ActorURI").create(c("XPluginCommentsCreateReplyAsyncController").getURIBuilder().setString("parent_comment_id",a).getURI(),b),h=l+c("uniqueID")();new(c("AsyncRequest"))(g).setData({app_id:r.appID,text:e.encodedValue,attached_photo_fbid:f.photoFBID,attached_sticker_fbid:f.stickerFBID,iframe_referer:r.iframeReferer,replied_to:M.getByID(a).replyToCommentID}).setMethod("POST").setHandler(function(c){var d=M.getByID(a),f=babelHelpers["extends"]({},d.public_replies);Object.assign(q,c.payload.idMap);d=M.getByID(a);d.public_replies=f;delete q[h];delete A[a];p.splice(p.indexOf(h),1);d.composer=!1;delete d.replyToCommentID;f=c.payload.commentID;d.public_replies.commentIDs.pop();d.public_replies.commentIDs.push(f);L("comment.create",{commentID:f,parentCommentID:a,message:e.visibleValue});M.initActorLikeState([f],b);M.emit("change")}).setErrorHandler(function(b){delete q[h],p.splice(p.indexOf(h),1),g=M.getByID(a),g.public_replies.commentIDs.pop(),g.public_replies.totalCount--,g.composer=!1,delete g.replyToCommentID,M.emit("change"),M.emit("postError",b)}).send();g=M.getByID(a);f=babelHelpers["extends"]({},g.public_replies);f.commentIDs||(f.commentIDs=[]);f.totalCount||(f.totalCount=0);f.totalCount++;f.commentIDs.push(h);g.public_replies=f;q[h]={authorID:r.user.id,body:{text:e.visibleValue},targetID:a,id:h};p.push(h);M.emit("change")},_prependComment:function(a){!a.id?a.id=l:(p.shift(),delete q[l]),p.unshift(a.id),q[a.id]=M.initComment(a),M.emit("change")},_getAttachmentFBID:function(a){var b=0,d=0;a&&(a.attachmentType==="photo"?b=c("nullthrows")(a.fbid):a.attachmentType==="sticker"&&(d=c("nullthrows")(a.fbid)));return{photoFBID:b,stickerFBID:d}},edit:function(a,b){a=M.getByID(a);a.editor=!0;a.prefillText=b;M.emit("change")},saveEdit:function(a){var b=JSON.parse(JSON.stringify(M.getByID(a))),e=d("ActorURI").create(c("XPluginCommentsEditCommentAsyncController").getURIBuilder().getURI(),M.getAuthor(a).id),f=M.getEditComposerContent(a),g=N._getAttachmentFBID(M.getEditComposerAttachment(a)),h=M.hasCommentChanged(a,f);if(h){new(c("AsyncRequest"))(e).setMethod("POST").setData({app_id:r.appID,text:f.encodedValue,comment_id:a,attached_photo_fbid:g.photoFBID,attached_sticker_fbid:g.stickerFBID,iframe_referer:r.iframeReferer}).setHandler(function(b){b=b.payload;q[b.commentID]=M.initComment(b.idMap[b.commentID]);delete B[a];M.emit("change")}).setErrorHandler(function(c){b.editor=!1,Object.assign(M.getByID(a),b),M.emit("change"),M.emit("postError",c)}).send();h=M.getByID(a);h.editor=!1;h.body.text=f.visibleValue;g.photoFBID===0&&delete h.photo_comment;g.stickerFBID===0&&delete h.attachment;delete h.ranges;M.emit("change")}else N.cancelEdit(a)},cancelEdit:function(a){a=M.getByID(a);a.editor=!1;M.emit("change")},"delete":function(a){var b=M.getByID(a);b.deleted=!0;b=d("ActorURI").create(c("XPluginCommentsDeleteCommentAsyncController").getURIBuilder().getURI(),M.getAuthor(a).id);new(c("AsyncRequest"))(b).setData({app_id:r.appID,comment_id:a,iframe_referer:r.iframeReferer}).setMethod("POST").setHandler(function(){return L("comment.remove",{commentID:a})}).setErrorHandler(function(b){b=M.getByID(a);b.deleted=!1;M.isReply(a)||M.updateCommentsCount(1);M.emit("change")}).send();M.isReply(a)||M.updateCommentsCount(-1);M.emit("change")},like:function(a){var b=M.getUser().id,e=M.getByID(a),f=M.hasActorLiked(e,b);a=d("ActorURI").create(c("XPluginCommentsLikeCommentAsyncController").getURIBuilder().setBool("action_like",!f).getURI(),b);new(c("AsyncRequest"))(a).setData({app_id:r.appID,comment_id:e.id,iframe_referer:r.iframeReferer}).setMethod("POST").setHandler(function(a){a=a.payload;Object.assign(q[a.commentID],M.initComment(a.idMap[a.commentID]));M.emit("change")}).setErrorHandler(function(a){M.hasActorLiked(e,b)?e.likeCount>0&&e.likeCount--:e.likeCount++,M.setActorLike(e,f,b),M.emit("postError",a)}).send();M.setActorLike(e,!f,b);M.hasActorLiked(e,b)?e.likeCount++:e.likeCount>0&&e.likeCount--;q[e.id]=e;M.emit("change")},sort:function(a){var b=M.getUser().id,d=c("XPluginCommentsPagerAsyncController").getURIBuilder().setInt("target_id",r.targetFBID).setEnum("ordering",a).getURI();new(c("AsyncRequest"))(d).setMethod("POST").setData({app_id:r.appID,limit:M.getPageSize(),iframe_referer:r.iframeReferer}).setHandler(function(c){c=c.payload;r.afterCursor=c.afterCursor;M.updateCommentData(c,a,b);M.emit("sortingCompleted");M.emit("change")}).send()},showMoreComments:function(){var a=M.getUser().id,b=c("XPluginCommentsPagerAsyncController").getURIBuilder().setInt("target_id",r.targetFBID).setEnum("ordering",M.getCurrentSorting()).getURI();new(c("AsyncRequest"))(b).setMethod("POST").setData({app_id:r.appID,after_cursor:r.afterCursor,limit:M.getPageSize(),deeplinked_comment_id:r.deeplinkedCommentID,iframe_referer:r.iframeReferer}).setHandler(function(b){b=b.payload;r.afterCursor=b.afterCursor;p=p.concat(b.commentIDs).filter(K);Object.assign(q,M.initComments(b.commentIDs,b.idMap));M.initActorLikeState(b.commentIDs,a);M.emit("moreCommentsCompleted");M.emit("change")}).setErrorHandler(function(a){M.emit("postError",a),M.emit("moreCommentsCompleted")}).send()},setUser:function(a){M.setActor(a);M.emit("actorChange");var b=M.getCommentIDsToFetch(a),e=d("ActorURI").create(d("ThisControllerNoLongerExists").__DEADBUILDER__("5pbr73yve").getURI(),a);new(c("AsyncRequest"))(e).setMethod("POST").setData({comment_ids:b}).setHandler(function(c){var d=c.payload;b.length>0&&(b.forEach(function(b){F[a].hasLiked[b]=d.hasLiked[b],F[a].canLike[b]=d.canLike[b]}),M.emit("likeStateChange"));t=!d.canPost;M.emit("afterActorChange")}).send();N._setDefaultLikeStates(a,b)},_setDefaultLikeStates:function(a,b){var c=F[a]?F[a].hasLiked:{},d=F[a]?F[a].canLike:{};b.forEach(function(a){c[a]=!1,d[a]=!1});F[a]={hasLiked:c,canLike:d};M.emit("likeStateChange")},setPostToFeed:function(a){M.setPostToFeed(a)},setPrivacyOption:function(a){M.setPrivacyOption(a)},showMoreReplies:function(a){var b=M.getUser().id,d=c("XPluginCommentsRepliesPagerAsyncController").getURIBuilder().setString("comment_id",a).getURI(),e=M.getByID(a).public_replies;new(c("AsyncRequest"))(d).setMethod("POST").setData({app_id:r.appID,after_cursor:e.afterCursor,limit:M.getPageSize(),iframe_referer:r.iframeReferer}).setHandler(function(c){c=c.payload;q=Object.assign(M.initComments(c.commentIDs,c.idMap),q);e.afterCursor=c.afterCursor;e.commentIDs=e.commentIDs.concat(c.commentIDs).filter(K);M.initActorLikeState(c.commentIDs,b);M.emit("moreRepliesCompleted",{commentID:a});M.emit("change")}).setErrorHandler(function(b){M.emit("postError",b),M.emit("moreRepliesCompleted",{commentID:a})}).send()},toggleVisibility:function(a){a=M.getByID(a);a.collapsed=!a.collapsed;M.emit("change")},flag:function(a){q[a].flagged=!0,N._sendFlagOrUnflagRequest(a,"flag"),M.emit("change")},unflag:function(a){q[a].flagged=!1,N._sendFlagOrUnflagRequest(a,"unflag"),M.emit("change")},_sendFlagOrUnflagRequest:function(a,b){var d=c("XPluginCommentsFlagCommentAsyncController").getURIBuilder().getURI();new(c("AsyncRequest"))(d).setData({app_id:r.appID,comment_id:a,iframe_referer:r.iframeReferer,unflag:b==="unflag"}).setMethod("POST").setErrorHandler(function(b){q[a].flagged=!q[a].flagged,M.emit("postError",b)}).send()},report:function(a){window.open(M.getByID(a).reportURI,"_blank")},showReplyComposer:function(a,b){var c=M.getByID(a);if(M.isReply(a)){a=a;c=M.getByID(c.targetID);c.replyToCommentID=a}c.prefillText=b;c.composer=!0;M.emit("change")},cancelReply:function(a){a=M.getByID(a);a.composer=!1;delete a.replyToCommentID;M.emit("change")},restorePreviousState:function(){var a=(i||(i=c("WebStorage"))).getSessionStorage(),b=a?a.getItem("previousState"):null;if(b){b=JSON.parse(b);a&&a.clear();a=M.getCommentIDs();if(b.action){var d={action:b.action,args:b.commentIDs};I(d)}var e=b.replies,f=b.edits;a.map(function(a){e[a]&&N.showReplyComposer(a,e[a]),f[a]&&N.edit(a,f[a])});b.commentBody&&M.emit("previousComposerCommentPrefill",{prefillText:b.commentBody});b.postToFeed&&(N.setPostToFeed(b.postToFeed),M.emit("previousPostToFeedPrefill"))}},embed:function(a){a=c("XCommentEmbedPluginEmbedAsyncDialogController").getURIBuilder().setString("comment_id",a).setInt("width",M.getDialogWidth()).getURI();d("AsyncDialog").send(new(c("AsyncRequest"))(a))}};M.ActionHandler=N;b=M;g["default"]=b}),98); __d("DevxProxyActions",["DevxFluxDispatcher"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){var b=this;Object.keys(a.ActionHandler).forEach(function(a){Object.defineProperty(b,a,{value:function(){for(var b=arguments.length,d=new Array(b),e=0;e1&&c("CommentsPluginStore").shouldUseCustomActorSelector()&&d("ShortProfiles").getMulti(this.actorIDs,function(b){a.setState({actorsData:b})})};e.render=function(){var a=this;if(this.actorIDs.length<=1)return null;var b=c("CommentsPluginStore").getUser().id;if(c("CommentsPluginStore").shouldUseCustomActorSelector()){var d=this.state.actorsData;return!d?null:k.jsxs("div",{className:"_3-95",children:[k.jsx(c("XUIText.react"),{size:"meta1",className:"_1y5f _2pih",children:i._(/*BTDS*/"B\u00ecnh lu\u1eadn v\u1edbi t\u01b0 c\u00e1ch")}),k.jsx("select",{value:b,onChange:function(b){return a.$CommentsPluginAuthorSelector$p_1(b.target.value)},className:"_1y5g",children:this.actorIDs.map(function(a){return k.jsx("option",{value:a,children:d&&d[a].name},a)})}),this.renderActionConfirmationDialog()]})}return k.jsxs("div",{className:c("joinClasses")(this.props.className,"inlineBlock"),children:[k.jsx(c("ActorSelector.react"),{actorIDs:this.actorIDs,coverEnabled:!1,selectedActorID:b,onChange:function(b){return a.$CommentsPluginAuthorSelector$p_1(b.value)},tooltipConstructor:this.$CommentsPluginAuthorSelector$p_2}),this.renderActionConfirmationDialog()]})};return b}(c("classWithMixins")(k.Component,c("mixin")(d("MixinCommentsPluginConfirmAction"))));g["default"]=a}),226); __d("CommentsPluginComposerMirroringNotice.react",["cx","fbt","CommentsPluginStore","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");a=function(a){function b(){return a.apply(this,arguments)||this}babelHelpers.inheritsLoose(b,a);var d=b.prototype;d.render=function(){var a=c("CommentsPluginStore").getMirroredPage();return!a?null:k.jsx("div",{className:"_5sge _2ph-",children:a.name?this.props.isReply?i._(/*BTDS*/"C\u00e2u tr\u1ea3 l\u1eddi c\u1ee7a b\u1ea1n c\u00f3 th\u1ec3 c\u0169ng xu\u1ea5t hi\u1ec7n tr\u00ean Trang Facebook c\u1ee7a {page name}.",[i._param("page name",k.jsx("a",{href:a.uri,target:"blank",children:a.name}))]):i._(/*BTDS*/"B\u00ecnh lu\u1eadn c\u1ee7a b\u1ea1n c\u00f3 th\u1ec3 c\u0169ng xu\u1ea5t hi\u1ec7n tr\u00ean Trang Facebook c\u1ee7a {page name}.",[i._param("page name",k.jsx("a",{href:a.uri,target:"blank",children:a.name}))]):this.props.isReply?i._(/*BTDS*/"C\u00e2u tr\u1ea3 l\u1eddi c\u1ee7a b\u1ea1n c\u0169ng c\u00f3 th\u1ec3 xu\u1ea5t hi\u1ec7n tr\u00ean Facebook."):i._(/*BTDS*/"B\u00ecnh lu\u1eadn c\u1ee7a b\u1ea1n c\u00f3 th\u1ec3 c\u0169ng xu\u1ea5t hi\u1ec7n tr\u00ean Facebook.")})};return b}(k.Component);g["default"]=a}),226); __d("PrivacyTransparentOverlay.react",["cx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");a=function(a){function b(){return a.apply(this,arguments)||this}babelHelpers.inheritsLoose(b,a);var c=b.prototype;c.render=function(){return j.jsxs("div",{className:"_4cqr",children:[this.props.children,j.jsx("div",{className:"clearfix"})]})};return b}(j.PureComponent);g["default"]=a}),98); __d("CommentsPluginProfilePicture.react",["Image.react","PrivacyTransparentOverlay.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");a=function(a){function b(){return a.apply(this,arguments)||this}babelHelpers.inheritsLoose(b,a);var d=b.prototype;d.render=function(){var a=this.props.href==""?null:this.props.href;a=i.jsx("a",babelHelpers["extends"]({},this.props,{href:a,children:i.jsx(c("Image.react"),babelHelpers["extends"]({},{0:{},2:{className:"xsdox4t xbhixyr x1useyqa x127pk2q"},1:{className:"xc9qbxq xbhixyr x14qfxbe x127pk2q"},3:{className:"xc9qbxq xbhixyr x14qfxbe x127pk2q"}}[!!!this.props.isReply<<1|!!this.props.isReply<<0],{src:this.props.src}))}));if(this.props.usePrivacyOverlay)return i.jsx(c("PrivacyTransparentOverlay.react"),{children:a});else return a};return b}(i.Component);g["default"]=a}),98); __d("isRTL",["UnicodeBidi","UnicodeBidiDirection"],(function(a,b,c,d,e,f,g){function a(a){return d("UnicodeBidi").getDirection(a)===d("UnicodeBidiDirection").RTL}g["default"]=a}),98); __d("HovercardLinkInterpolator",["cx","fbt","Badge.react","CommentMentionsGatingConfig","HovercardLink","Link.react","URI","isFacebookURI","isRTL","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||b("react");function a(a,c,d,e,f,g){g===void 0&&(g=null);c=c.entity;d=d||(c.external?"_blank":null);var i=(c.external?"":"profileLink")+(c.weakreference?" weakReference":""),l=c.hashtag?a.substring(1):a;l=b("isRTL")(l)?"rtl":"ltr";var m=new(j||(j=b("URI")))(c.url);b("isFacebookURI")(m)&&m.addQueryData({hc_location:f});var n=c.shimhash?c.shimhash:null,o=!c.external&&!c.hashtag&&!c.photo&&!c.note&&!c.statusupdate&&!c.video;o=o?{"data-hovercard":b("HovercardLink").constructEndpointWithGroupLocationAndExtraParams(c,e,c.hovercardlocation?c.hovercardlocation:f,null,g).toString()}:{};if(c.hashtag)e=k.jsxs("a",babelHelpers["extends"]({},o,{className:"_58cn",dir:l,href:m.toString(),target:d,children:[k.jsx("span",{"aria-label":h._(/*BTDS*/"hashtag"),className:"_58cl",children:a.substring(0,1)}),k.jsx("span",{className:"_58cm",children:a.substring(1)})]}));else if(c.type==="user"&&b("CommentMentionsGatingConfig").enabled_rich_comment_mentions)e=k.jsx("div",{className:"_35mm",children:k.jsx(b("Link.react"),babelHelpers["extends"]({},o,{className:i,dir:l,href:{url:m.toString(),shimhash:n},target:d}))});else{f=[];c.weakreference&&f.push(k.jsx("i",{className:"UFIWeakReferenceIcon"},"weakreference"));f.push(a);c.workForeignEntity&&f.push(k.jsx(b("Badge.react"),{type:"work_non_coworker"},"noncoworker"));c.dialogurl?e=k.jsx(b("Link.react"),babelHelpers["extends"]({},o,{className:i,dir:l,ajaxify:c.dialogurl,rel:"dialog",href:{url:m.toString(),shimhash:n},target:d,children:f})):e=k.jsx(b("Link.react"),babelHelpers["extends"]({},o,{className:i,dir:l,href:{url:m.toString(),shimhash:n},target:d,children:f}))}return e}e.exports=a}),130); __d("VideoTimestampsClicksWWWTypedLogger",["Banzai","GeneratedLoggerUtils"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){this.$1={}}var c=a.prototype;c.log=function(a){b("GeneratedLoggerUtils").log("logger:VideoTimestampsClicksWWWLoggerConfig",this.$1,b("Banzai").BASIC,a)};c.logVital=function(a){b("GeneratedLoggerUtils").log("logger:VideoTimestampsClicksWWWLoggerConfig",this.$1,b("Banzai").VITAL,a)};c.logImmediately=function(a){b("GeneratedLoggerUtils").log("logger:VideoTimestampsClicksWWWLoggerConfig",this.$1,{signal:!0},a)};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setCommentID=function(a){this.$1.comment_id=a;return this};c.setIsContentTimestamp=function(a){this.$1.is_content_timestamp=a;return this};c.setLocalCommentFeedbackID=function(a){this.$1.local_comment_feedback_id=a;return this};c.setVideoTimestamp=function(a){this.$1.video_timestamp=a;return this};return a}();c={comment_id:!0,is_content_timestamp:!0,local_comment_feedback_id:!0,video_timestamp:!0};f["default"]=a}),66); __d("transformTextRanges",["UnicodeUtils"],(function(a,b,c,d,e,f,g){var h;function a(a,b,c){if(!a||!b||!c)return a;b.sort(function(a,b){return a.offset-b.offset});var e=0;for(var f=0;f0&&(b=c("transformTextRanges")(b,a,function(a,b){b=b.entity&&(b.entity.external||b.entity.__typename==="ExternalUrl");return b?c("URITruncator")(a,k):a})));return b}function b(a,b,d,e,f){return function(g,h){if(h.videoTimestamp){if(e)return j.jsx("span",{children:h.entity});var i=function(a){a.preventDefault();new(c("VideoTimestampsClicksWWWTypedLogger"))().setVideoTimestamp(h.integerTimestamp).setCommentID(d).setIsContentTimestamp(!1).log();b&&(c("UFI2VideoPlayerRegistry").seekAvailableVideoPlayerController(b,h.integerTimestamp),c("UFI2VideoPlayerRegistry").scrollToAvailableVideo(b));return!1};return j.jsx("a",{className:"TimestampLink",href:"#",onClick:i,children:h.entity})}else if(h.sphericalViewport){i=function(a){a.preventDefault();b&&c("UFI2VideoPlayerRegistry").setAvailableVideoPlayerControllerSphericalViewport(b,{pitch:h.pitch,yaw:h.yaw});return!1};return j.jsx("a",{href:"#",onClick:i,children:h.entity})}else if(h.sphericalViewportAndTimestamp){i=function(a){a.preventDefault();b&&(c("UFI2VideoPlayerRegistry").setAvailableVideoPlayerControllerSphericalViewport(b,{pitch:h.pitch,yaw:h.yaw}),c("UFI2VideoPlayerRegistry").seekAvailableVideoPlayerController(b,h.integerTimestamp));return!1};return j.jsx("a",{href:"#",onClick:i,children:h.entity})}else if(h.campaign)return j.jsx(c("TextDelightRange.react"),{campaignID:h.campaign.id,commentPrivacy:f||void 0,delightStyles:h.campaign.delight_styles,surface:"comment",children:g});else return c("HovercardLinkInterpolator")(g,h,"_blank",a,"ufi")}}function e(a){if(!a)return a;var b=[];a.forEach(function(a){b.push(babelHelpers["extends"]({},a))});return b}function f(a,b){return!a?b:new(h||(h=c("URI")))(b).addQueryData("rc","p").toString()}function l(a,b,c,d){if(!a)return!1;var e=0,f,g;for(var h=0;h1)return!0;if(c[f.id]){g=b?b[f.id]:[];for(var i=0;i1)return!0}}}return!1}g.getCommentTextWithTruncatedURIs=a;g.getCommentBodyInterpolator=b;g.shallowCopyRanges=e;g.annotateProfileURIIfPublic=f;g.shouldShowTranslateAll=l}),98); __d("FocusRelocator.react",["csx","CSS","Focus","getActiveElement","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i;a=i||d("react");b=function(a){function b(){return a.apply(this,arguments)||this}babelHelpers.inheritsLoose(b,a);var e=b.prototype;e.UNSAFE_componentWillReceiveProps=function(a){var b=this.props,c=b.from;b=b.to;var e=a.from;a=a.to;e&&a&&(c!==e||b!==a)&&(this.$1&&this.$1.remove(),this.$1=d("Focus").relocate(e,a))};e.componentDidUpdate=function(){this.$2()};e.componentWillUnmount=function(){this.$1&&this.$1.remove(),this.$1=null};e.render=function(){return this.props.children};e.$3=function(){var a=this.props,b=a.from;a=a.to;b&&a&&(d("Focus").performRelocation(b,a,c("getActiveElement")()===this.props.from),this.$2())};e.$2=function(){var a=this;this.props.to&&c("getActiveElement")()===this.props.from&&!d("CSS").matchesSelector(this.props.to,"._16jm")&&setTimeout(function(){a.$3()},0)};return b}(a.Component);g["default"]=b}),98); __d("UFI2StickerButtonDEPRECATED.react",["cx","fbt","Arbiter","Bootloader","FocusRelocator.react","Link.react","createReactClass_DEPRECATED","react","setImmediate","stringRefShim"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");a=c("createReactClass_DEPRECATED")({_clickGuard:!1,_hideFlyout:function(){this.setState({flyoutShown:!1})},_linkRef:null,_onLinkClicked:function(a){a.preventDefault();if(this.state.renderFlyout!==null){this._clickGuard||(this.props.onStickerFlyoutShow&&this.props.onStickerFlyoutShow(),this.setState({flyoutShown:!0}));return}this._showFlyout(null)},_onStickerSelected:function(a,b,c){this.props.onStickerSelected(a,b,c),this._hideFlyout()},_openFlyoutListener:null,_prepareForClick:function(){this._clickGuard=this.state.flyoutShown},_setRef:function(a){this._linkRef=a},_showFlyout:function(a){var b=this;c("Bootloader").loadModules(["ContextualLayerAutoFlip","LayerTabIsolation","StickersFlyout.react","XUIContextualDialog.react","StickersActions"],function(d,e,f,g,h){b.setState({flyoutShown:!0,renderFlyout:function(){return k.jsx(g,{alignment:"right",behaviors:{ContextualLayerAutoFlip:d,LayerTabIsolation:e},className:"_5e-r",contextRef:function(){return b._linkRef},hasActionableContext:!0,onBlur:b._hideFlyout,onToggle:function(a){!a&&b.state.flyoutShown&&b._hideFlyout()},position:"above",shown:b.state.flyoutShown,width:278,children:k.jsx("div",{children:k.jsx(f,{customStickerOwnerID:b.props.customStickerOwnerID,onEscKeyDown:b._hideFlyout,onStickerSelect:b._onStickerSelected,shown:b.state.flyoutShown,stickerInterface:b.props.stickerInterface})})})}}),b.props.onStickerFlyoutShow&&b.props.onStickerFlyoutShow(),a&&c("setImmediate")(function(){return h.selectTrayPack(a)})},"UFI2StickerButtonDEPRECATED.react")},_updateListener:null,componentDidMount:function(){var a=this;this._updateListener=c("Arbiter").subscribe("page_transition",function(){return a._hideFlyout()});this._openFlyoutListener=c("Arbiter").subscribe("GamingStickers/openFlyout",function(b,c){return a._showFlyout(c)})},componentWillUnmount:function(){this._updateListener&&this._updateListener.unsubscribe(),this._openFlyoutListener&&this._openFlyoutListener.unsubscribe()},displayName:"UFI2StickerButtonDEPRECATED",getDefaultProps:function(){return{customStickerOwnerID:"",showTooltip:!0,stickerInterface:"comments"}},getInitialState:function(){return{flyoutShown:!1,renderFlyout:null}},render:function(){var a=i._(/*BTDS*/"\u0110\u0103ng nh\u00e3n d\u00e1n");return k.jsx(c("FocusRelocator.react"),{from:this._linkRef,to:this.refs.icon,children:k.jsxs(c("Link.react"),{"aria-label":a,className:"_r1a UFICommentStickerButton","data-hover":"tooltip","data-tooltip-alignh":"center","data-tooltip-content":this.props.showTooltip?a:null,linkRef:this._setRef,onClick:this._onLinkClicked,onMouseDown:this._prepareForClick,role:"button",tabIndex:this.props.tabIndex,children:[k.jsx("div",{className:"UFICommentStickerIcon"+(this.state.flyoutShown?" UFICommentStickerIconActive":""),ref:c("stringRefShim")(this,"icon")}),this.props.children,this.state.renderFlyout?this.state.renderFlyout():null]})})}});b=a;g["default"]=b}),226); __d("UFIAttachMediaSection.react",["cx","fbt","Bootloader","Focus","UFICommentFileInputAcceptValues.experimental","XUIError.react","react","stringRefShim"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");a=function(a){function b(){var b;for(var d=arguments.length,e=new Array(d),f=0;fa?(e=n/b,c=a*e,d=b*e):(e=n/a,c=a*e,d=b*e);return{height:Math.round(c),width:Math.round(d)}};e.$3=function(){var a=d("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(this),b=a?c("DOMVector").getElementDimensions(a).y:0;b!==this.$1&&(this.$1=b,c("Arbiter").inform("ufi/photoPreviewHightChanged",{node:a}))};e.componentDidUpdate=function(){this.props.monitorHeight&&this.$3()};e.getMatchingStarText=function(a,b){return i._(/*BTDS*/"{user_tipped_star_quantity} + {matched_star_quantity} Sao",[i._param("user_tipped_star_quantity",a),i._param("matched_star_quantity",b)])};e.maybeShowStarAttachmentTooltip=function(a){var b=this;return l.jsx(c("XUIAmbientNUX.react"),{alignment:"right",contextRef:function(){return b.refs.attachment_ref},position:"above",shown:this.state.starNuxShown,onCloseButtonClick:this.$4,children:i._(/*BTDS*/"Facebook s\u1ebd g\u1eedi th\u00eam {Number of stars that Facebook will match.} Sao.",[i._param("Number of stars that Facebook will match.",a)])},"ambientNUX")};e.render=function(){var a=null,b=this.props.attachedPhoto||this.props.attachedSticker||this.props.attachedVideo||this.props.attachedFile||this.props.attachedGIF||this.props.attachedStars;if(b&&this.props.attachedSticker){var d=this.$2(b.metadata.height,b.metadata.width),e=null,f=null;window.devicePixelRatio&&window.devicePixelRatio>1?(e=b.metadata.sprite_uri_2x,f=b.metadata.source_uri_2x):(e=b.metadata.sprite_uri,f=b.metadata.source_uri);a=l.jsx(c("BootloadedComponent.react"),{accessibilityLabel:b.metadata.accessibilityLabel,bootloadPlaceholder:l.jsx(c("XUISpinner.react"),{}),bootloadLoader:c("JSResource")("Sticker.react").__setRef("UFIAttachedMediaPreview.react"),animationTrigger:"load_and_hover",frameCount:b.metadata.frameCount,frameRate:b.metadata.frameRate,framesPerCol:b.metadata.framesPerCol,framesPerRow:b.metadata.framesPerRow,spriteURI:e,sourceHeight:d.height,sourceURI:f,sourceWidth:d.width})}else if(b&&this.props.attachedGIF)if(b.markup)a=l.jsx(c("DOMContainer.react"),{children:b.markup}),b.markup.clientWidth&&b.markup.clientWidth>m&&(a=l.jsx("div",{style:{marginTop:"20px"},children:a}));else{e=this.props.attachedGIF.media.preview;a=l.jsx("div",{style:{height:e.height,width:e.width},children:l.jsx(c("Image.react"),{src:e.url})})}else if(b&&this.props.attachedFile){f=b.markupPreview;f&&(c("HTML").isHTML(f.markup)&&(f=c("HTML").replaceJSONWrapper(f.markup).getRootNode()),a=l.jsx(c("DOMContainer.react"),{"data-testid":void 0,children:f}))}else if(b&&this.props.attachedPhoto){d=b.markupPreview;d?(c("HTML").isHTML(d.markup)&&(d=c("HTML").replaceJSONWrapper(d.markup).getRootNode()),a=l.jsx(c("DOMContainer.react"),{"data-testid":void 0,children:d})):this.props.attachedPhoto&&this.props.attachedPhoto.metadata&&this.props.attachedPhoto.metadata.preview_uri&&(a=l.jsx("div",{style:{height:this.props.attachedPhoto.metadata.height},children:l.jsx(c("Image.react"),{src:this.props.attachedPhoto.metadata.preview_uri})}))}else if(this.props.isLoadingPhoto||this.props.isLoadingFile)a=l.jsx(c("LoadingIndicator.react"),{color:"white",className:"UFICommentPhotoAttachedPreviewLoadingIndicator",size:"medium"});else if(b&&this.props.attachedVideo)a=l.jsx("div",{className:"_3f0q",children:l.jsx(c("DOMContainer.react"),{children:b.markup})});else if(b&&this.props.attachedStars){var g;f=(e=b.promotionEvent)==null?void 0:e.imageSrc;d=f&&b.matchingQuantity>0;e=b.previewImageSrc;var h=b.userTippedQuantity,k=b.matchingQuantity;g=(g=b.giftType)!=null?g:b.gift;var n=d?this.maybeShowStarAttachmentTooltip(b.matchingQuantity):null;g!=null?a=null:a=l.jsxs("div",{className:"UFICommentStarsAttachedPreview",children:[d?l.jsx(c("Image.react"),{ref:c("stringRefShim")(this,"attachment_ref"),className:"UFICommentStarsAttachedPreviewImage",src:f,height:"20",width:"20"}):l.jsx(c("Image.react"),{ref:c("stringRefShim")(this,"attachment_ref"),className:"UFICommentStarsAttachedPreviewImage",src:e?e:j("647932")}),l.jsx(c("XUIText.react"),{weight:"bold",children:d?this.getMatchingStarText(h,k):i._(/*BTDS*/"{star_quantity} Sao",[i._param("star_quantity",b.metadata)])}),n]})}g=null;f=this.props.attachedSticker?this.props.onRemoveAttachedStickerPreview:this.props.attachedStars?this.props.onRemoveAttachedStarsPreview:this.props.onRemoveAttachedMediaPreviewClicked;if(a!=null){e=null;this.props.attachedSticker?e=i._(/*BTDS*/"G\u1ee1 nh\u00e3n d\u00e1n"):this.props.attachedPhoto?e=i._(/*BTDS*/"G\u1ee1 \u1ea3nh"):this.props.attachedVideo?e=i._(/*BTDS*/"G\u1ee1 video"):this.props.attachedFile?e=i._(/*BTDS*/"G\u1ee1 file"):this.props.attachedGIF?e=i._(/*BTDS*/"G\u1ee1 file GIF"):this.props.attachedStars&&(e=this.props.attachedStars.gift==null?i._(/*BTDS*/"G\u1ee1 sao"):i._(/*BTDS*/"G\u1ee1 qu\u00e0 t\u1eb7ng"));d=c("SutroStoryHeaderUFIGatingConfig").enabled_for_comment_composer_rounded_borders;g=l.jsxs("div",{className:"UFICommentPhotoAttachedPreview"+(d?" _4soo":"")+" pas",children:[a,l.jsx(c("CloseButton.react"),{tooltip:e,onClick:f,ariaLabel:e})]})}return g};return b}(l.Component);g["default"]=b}),226); __d("UFIImageBlock.react",["cx","ImageBlock.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");a=function(a){function b(){return a.apply(this,arguments)||this}babelHelpers.inheritsLoose(b,a);var d=b.prototype;d.render=function(){return j.jsx(c("ImageBlock.react"),babelHelpers["extends"]({},this.props,{imageClassName:"UFIImageBlockImage",contentClassName:"UFIImageBlockContent",children:this.props.children}))};return b}(j.Component);g["default"]=a}),98); __d("CommentsPluginComposer.react",["cx","fbt","ActorURI","AsyncRequest","CommentsPluginComposerMirroringNotice.react","CommentsPluginProfilePicture.react","CommentsPluginStore","EditorState","MentionsInput.react","UFI2CommentUtils","UFI2StickerButtonDEPRECATED.react","UFIAttachMediaSection.react","UFIAttachedMediaPreview.react","UFIImageBlock.react","XUINotice.react","XUITypeaheadView.react","createEditorStateWithRanges","getMentionsInputDecorator","getVisibleValueForContentState","joinClasses","react","stringRefShim"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=19,m="/ajax/ufi/sticker_preview/";function n(a,b){return b.createEntity("MENTION","IMMUTABLE",{id:a.entity.id})}a=function(a){function b(b,d){var e;e=a.call(this,b,d)||this;e.$10=function(a){e.setState({editorState:a}),e.props.editCommentID?c("CommentsPluginStore").setEditComposerState(a,e.props.editCommentID):c("CommentsPluginStore").setCreateComposerState(a,e.props.parentCommentIDOfNewReply)};e.$12=function(){e.setState({expanded:!0})};e.state=e.$1();return e}babelHelpers.inheritsLoose(b,a);var e=b.prototype;e.$1=function(a){var b=null,e=null;a=a||this.props.prefillText;if(a)b=this.$2(a),this.props.editCommentID?c("CommentsPluginStore").setEditComposerState(b,this.props.editCommentID):c("CommentsPluginStore").setCreateComposerState(b,this.props.parentCommentIDOfNewReply);else{var f=null,g=null;if(this.props.editCommentID)e=c("CommentsPluginStore").getByID(this.props.editCommentID),b=c("createEditorStateWithRanges")({text:e.body.text,ranges:d("UFI2CommentUtils").shallowCopyRanges(e.ranges).filter(function(a){return!a.entity.external}),decorator:c("getMentionsInputDecorator")(),addEntityToContentStateFn:n}),e.photo_comment?(f=e.photo_comment,f.attachmentType="photo",this.$3(f)):e.attachment&&(g=e.attachment,g.attachmentType="sticker",this.$3(g));else if(this.props.parentCommentIDOfNewReply){e=c("CommentsPluginStore").getByID(this.props.parentCommentIDOfNewReply);if(e.replyToCommentID&&c("CommentsPluginStore").getAuthor(e.replyToCommentID).id!==c("CommentsPluginStore").getUser().id){e=c("CommentsPluginStore").getAuthor(e.replyToCommentID);var h={id:e.id,text:e.name,offset:0,length:e.name.length,entity:{id:e.id}};b=c("EditorState").moveFocusToEnd(c("createEditorStateWithRanges")({text:e.name+" ",ranges:[h],decorator:c("getMentionsInputDecorator")(),addEntityToContentStateFn:n}))}}b||(b=c("EditorState").createEmpty(c("getMentionsInputDecorator")()))}return{editorState:b,expanded:a||!!this.props.alwaysExpanded,attachedPhoto:f,attachedSticker:g}};e.$2=function(a){return c("createEditorStateWithRanges")({text:a,decorator:c("getMentionsInputDecorator")()})};e.$4=function(){return!this.props.editCommentID&&!this.props.parentCommentIDOfNewReply};e.$3=function(a){this.props.editCommentID?c("CommentsPluginStore").setEditComposerAttachment(a,this.props.editCommentID):c("CommentsPluginStore").setCreateComposerAttachment(a,this.props.parentCommentIDOfNewReply)};e.$5=function(a){this.props.editCommentID?c("CommentsPluginStore").setLoadingEditComposerAttachment(a,this.props.editCommentID):c("CommentsPluginStore").setLoadingCreateComposerAttachment(a,this.props.parentCommentIDOfNewReply)};e.$6=function(){if(this.props.editCommentID)return c("CommentsPluginStore").getLoadingEditComposerAttachment(this.props.editCommentID);else return c("CommentsPluginStore").getLoadingCreateComposerAttachment(this.props.parentCommentIDOfNewReply)};e.$7=function(){return this.state.isLoadingAttachment||!!this.state.attachedSticker||!!this.state.attachedPhoto};e.getPhotoUploadData=function(){var a,b=c("CommentsPluginStore").getUser().id;return a={profile_id:b,target_id:this.props.targetID,source:l},a[d("ActorURI").PARAMETER_ACTOR]=b,a};e.onPhotoUploadComplete=function(a){if(!this.$6())return;a=a.getPayload();a&&a.fbid?(a.attachmentType="photo",this.$3(a),this.$5(!1),this.setState({attachedPhoto:a,isLoadingAttachment:!1,expanded:!0})):this.resetAttachment(null)};e.onStickerSelected=function(a){this.$8(),new(c("AsyncRequest"))(m).setData({sticker_id:a}).setErrorHandler(this.resetAttachment.bind(this)).setHandler(this.$9.bind(this)).send()};e.$9=function(a){if(!this.$6())return;a=a.getPayload();a&&a.fbid?(a.attachmentType="sticker",this.$3(a),this.$5(!1),this.setState({attachedSticker:a,isLoadingAttachment:!1,expanded:!0})):this.resetAttachment(null)};e.resetAttachment=function(a){this.$3(void 0),this.$5(!1),this.setState({attachedPhoto:null,attachedSticker:null,isLoadingAttachment:!1})};e.$8=function(){this.$3(void 0),this.$5(!0),this.setState({attachedSticker:null,attachedPhoto:null,isLoadingAttachment:!0})};e.componentDidMount=function(){var a=this;c("CommentsPluginStore").addListener("composerCommentAdded",function(b){if(a.$4()){b=a.$1();b.expanded=!0;a.setState(b);a.refs.composer.style&&(a.refs.composer.style.cssText="")}});c("CommentsPluginStore").addListener("previousComposerCommentPrefill",function(b){b=a.$1(b.prefillText);b.expanded=!0;a.setState(b)});this.$4()||this.refs.composer.focus()};e.$11=function(){return this.props.editCommentID?c("CommentsPluginStore").isReply(this.props.editCommentID):!!this.props.parentCommentIDOfNewReply};e.setFileInput=function(a,b){this.setState({fileInput:a,fileUploader:b})};e.$13=function(){return c("getVisibleValueForContentState")(this.state.editorState.getCurrentContent())};e.$14=function(a){a=a.target;var b=a.value;a.value="";a.value=b;this.$12()};e.$15=function(a){a=a.target;a.style.height="auto";var b=a.scrollHeight;a.offsetHeight200?d:"")};d.getAlignment=function(){return new(b("Alignment"))(new j(this.$SingleSelectorBase5.getRoot(),j.TOP,j.LEFT),new j(this.$SingleSelectorBase13(),k,j.MIDDLE),new j(this.$SingleSelectorBase23(),k,j.MIDDLE))};d.$SingleSelectorBase23=function(){return b("DOMQuery").find(this.$SingleSelectorBase1,"._55pe")};d.getSelectedItem=function(){var a=this,c=null;this.$SingleSelectorBase3!==l?this.getMenu().forEachItem(function(b){b.getValue()===a.$SingleSelectorBase3&&(c===null||i(0,4204),c=b)}):this.getMenu().forEachItem(function(a){b("SelectableMenuUtils").isSelected(a)&&(c===null||i(0,4204),c=a)});c!==null||i(0,4205);return c};d.$SingleSelectorBase13=function(){return b("DOMQuery").find(this.getSelectedItem().getRoot(),"._54nh")};d.destroy=function(){this.$SingleSelectorBase2&&this.$SingleSelectorBase2.destroy(),this.$SingleSelectorBase9.destroy(),this.$SingleSelectorBase6.destroy(),this.$SingleSelectorBase5.destroy()};return c}(b("mixin")(b("ArbiterMixin"),b("BehaviorsMixin")));function n(a,c,d){b("Style").set(a,c,b("Style").getFloat(a,c)+d+"px")}e.exports=a}),null); __d("XUISingleSelectorButton.react",["ix","Image.react","XUIPopoverButton.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||d("react");a=function(a){function b(){return a.apply(this,arguments)||this}babelHelpers.inheritsLoose(b,a);var d=b.prototype;d.render=function(){return j.jsx(c("XUIPopoverButton.react"),babelHelpers["extends"]({},this.props,{chevron:j.jsx(c("Image.react"),{src:h("101343")})}))};return b}(j.Component);g["default"]=a}),98); __d("XUISingleSelector.react",["DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE","InlineBlock.react","ReactDOM_DEPRECATED","ReactSelectorUtils","ReactXUIMenu","SingleSelectorBase","SubscriptionsHandler","XUISingleSelectorButton.react","areEqual","cloneWithProps_DEPRECATED","react","stringRefShim"],(function(a,b,c,d,e,f,g){var h,i,j=i||d("react");a=function(a){function b(){var b;for(var e=arguments.length,f=new Array(e),g=0;gc("CommentsPluginStore").getMaxCommentLength()})});b.addListener("composerCommentAdded",function(){a.setState({waitingAsyncResponse:!1}),a.refs.composer.resetAttachment()});b.addListener("login",function(){a.setState({waitingAsyncResponse:!1})});b.addListener("actorChange",function(){a.refs.composer.resetAttachment(),a.forceUpdate()});b.addListener("previousPostToFeedPrefill",function(){a.setState({postToFeed:c("CommentsPluginStore").getPostToFeed()})})};d.$3=function(){return this.state.waitingAsyncResponse||this.state.unableToPost||c("CommentsPluginStore").isEmptyCreateComposer()};d.render=function(){var a=c("CommentsPluginStore").isLoggedIn()||c("CommentsPluginStore").isConsentRequired()?i._(/*BTDS*/"\u0110\u0103ng"):i._(/*BTDS*/"\u0110\u0103ng nh\u1eadp v\u00e0o b\u00e0i vi\u1ebft");return k.jsx(c("CommentsPluginComposer.react"),{allowPhotoAttachments:c("CommentsPluginStore").getEnablePhoto(),allowStickerAttachments:c("CommentsPluginStore").getEnableSticker(),ref:c("stringRefShim")(this,"composer"),className:"_2392",readOnly:this.state.waitingAsyncResponse,unableToPost:this.state.unableToPost,children:k.jsxs(c("LeftRight.react"),{className:"_5tr6 clearfix _2ph-",children:[k.jsx("span",{}),k.jsxs("span",{children:[k.jsx(c("CommentsPluginAuthorSelector.react"),{}),c("CommentsPluginConfig").commentPrivacy&&this.state.postToFeed?k.jsx(c("CommentsPluginPrivacySelector.react"),{privacyOption:this.state.privacyOption,onChange:this.$1,addlPrivacyOptions:c("CommentsPluginStore").getPrivacyOptionsList()}):null,k.jsx(c("XUIButton.react"),{"data-testid":void 0,disabled:this.$3(),label:a,use:"confirm",className:"rfloat _3-99",onClick:this.$2})]})]})})};return b}(k.Component);g["default"]=a}),226); __d("XDeveloperProductsController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/products/{product_name}/{?product_section}/{?path1}/{?path2}/{?path3}/",{product_name:{type:"String",required:!0},product_section:{type:"String"},path1:{type:"String"},path2:{type:"String"},path3:{type:"String"}})}),null); __d("CommentsPluginFooter.react",["cx","fbt","ix","Image.react","ImageBlock.react","XDeveloperProductsController","react"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l=k||d("react");a=function(a){function b(){return a.apply(this,arguments)||this}babelHelpers.inheritsLoose(b,a);var d=b.prototype;d.render=function(){var a;return l.jsx("div",{className:"_5lm5 _2pi3 _3-8y",children:l.jsxs(c("ImageBlock.react"),{children:[l.jsx(c("Image.react"),{src:j("83801")}),l.jsx("a",{target:"_blank",href:c("XDeveloperProductsController").getURIBuilder().setString("product_name","social-plugins").setString("product_section","comments").getURI().setQueryData((a={},a.utm_campaign="social_plugins",a.utm_medium="offsite_pages",a.utm_source="comments_plugin",a)).setSubdomain("developers"),children:i._(/*BTDS*/"Plugin b\u00ecnh lu\u1eadn tr\u00ean Facebook")})]})})};return b}(l.Component);g["default"]=a}),226); __d("CommentsPluginHeader.react",["cx","fbt","CommentsPluginActions","CommentsPluginStore","DeveloperCommentsPluginOrdering","LeftRight.react","Link.react","XUISingleSelector.react","XUISpinner.react","XUIText.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");a=function(a){function b(b){var d;d=a.call(this,b)||this;d.$1=function(a){d.setState({sorting:!0}),c("CommentsPluginStore").addListener("sortingCompleted",function(){d.setState({sorting:!1}),c("CommentsPluginStore").removeCurrentListener()}),c("CommentsPluginActions").sort(a.value||a.target.value)};d.state={sorting:!1};return d}babelHelpers.inheritsLoose(b,a);var d=b.prototype;d.componentDidMount=function(){var a=this;c("CommentsPluginStore").addListener("commentsCountChange",function(){a.forceUpdate()})};d.render=function(){var a=null,b=null;c("CommentsPluginStore").getModerateURL()&&(a=k.jsxs("span",{children:[k.jsx("span",{className:"_52bm",children:"|"}),k.jsx(c("Link.react"),{href:c("CommentsPluginStore").getModerateURL(),target:"_blank",children:i._(/*BTDS*/"C\u00f4ng c\u1ee5 ki\u1ec3m duy\u1ec7t")})]}));c("CommentsPluginStore").isDeeplinkComment()&&(b=k.jsxs("span",{children:[k.jsx("span",{className:"_52bm",children:"|"}),k.jsx(c("Link.react"),{href:c("CommentsPluginStore").getOriginalLink(),target:"_blank",children:i._(/*BTDS*/"Li\u00ean k\u1ebft ban \u0111\u1ea7u")})]}));var d=c("DeveloperCommentsPluginOrdering").__types.filter(function(a){return a!=="social"||c("CommentsPluginStore").isRankingAllowed()});return k.jsxs(c("LeftRight.react"),{style:{width:"100%",height:50},className:"_491z",children:[k.jsxs("span",{children:[k.jsx(c("XUIText.react"),{weight:"bold",children:c("CommentsPluginStore").getCommentsCount()!==1?i._(/*BTDS*/"{count} b\u00ecnh lu\u1eadn",[i._param("count",c("CommentsPluginStore").getCommentsCount())]):i._(/*BTDS*/"1 b\u00ecnh lu\u1eadn")}),a,b]}),k.jsxs("div",{children:[this.state.sorting?k.jsx(c("XUISpinner.react"),{size:"small",className:"_3-90"}):null,k.jsx("span",{className:"_pup",children:i._(/*BTDS*/"S\u1eafp x\u1ebfp theo")})," ",c("CommentsPluginStore").isMobile()?k.jsx("select",{className:"_3-8_ _33ki",initialValue:c("CommentsPluginStore").getCurrentSorting(),onChange:this.$1,children:d.map(function(a){return k.jsx("option",{value:a,children:c("DeveloperCommentsPluginOrdering").__labels[a]},a)})}):k.jsx(c("XUISingleSelector.react"),{alignh:"right",className:"_3-8_",defaultValue:c("CommentsPluginStore").getCurrentSorting(),onChange:this.$1,children:d.map(function(a){return k.jsx(c("XUISingleSelector.react").Option,{value:a,children:c("DeveloperCommentsPluginOrdering").__labels[a]},a)})})]})]})};return b}(k.Component);g["default"]=a}),226); __d("Middot.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("span",babelHelpers["extends"]({},a,{children:[i.jsx("span",{className:"xzpqnlu x179tack x10l6tqk",children:"\xa0"}),i.jsx("span",{"aria-hidden":"true",children:" \xb7 "})]}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("FeedbackPayloadSourceType",[],(function(a,b,c,d,e,f){a=Object.freeze({UNKNOWN:0,INITIAL_SERVER:1,LIVE_SEND:2,USER_ACTION:3,STREAMING:4,COLLAPSE_ACTION:7,ENDPOINT_LIKE:10,ENDPOINT_COMMENT_LIKE:11,ENDPOINT_ADD_COMMENT:12,ENDPOINT_EDIT_COMMENT:13,ENDPOINT_DELETE_COMMENT:14,ENDPOINT_HIDE_COMMENT:16,ENDPOINT_REMOVE_PREVIEW:17,ENDPOINT_ID_COMMENT_FETCH:18,ENDPOINT_COMMENT_FETCH:19,ENDPOINT_TRANSLATE_COMMENT:20,ENDPOINT_BAN:21,ENDPOINT_SUBSCRIBE:22,ENDPOINT_COMMENT_LIKECOUNT_UPDATE:23,ENDPOINT_DISABLE_COMMENTS:24,ENDPOINT_ACTOR_CHANGE:25,ENDPOINT_REACTION:26,ENDPOINT_PAGES_MODERATION:27,ENDPOINT_COMMENT_REACTION:28,ENDPOINT_COMMENT_ANSWER_ACCEPT:29,ENDPOINT_COMMENT_KEEP_SPAM:30,ENDPOINT_COMMENT_APPEAL_SPAM:31,ENDPOINT_COMMENT_SECURE_ACCOUNT:32,ENDPOINT_DELETE_COMMENT_AND_REMOVE_COMMENTER:33,ENTPOINT_MUTE_MEMBER:34,ENDPOINT_SUBSCRIBE_COMMENT:35,ENDPOINT_HIDE_TEXT_DELIGHTS:36,ENDPOINT_SEND_MESSAGE:37,ENDPOINT_COMMENT_VOTE:38,ENDPOINT_AUTHOR_PINNED_COMMENT:39,ENDPOINT_DELETE_COMMENT_WTH_FEEDBACK:40});f["default"]=a}),66); __d("UFI2FeedbackActionType",[],(function(a,b,c,d,e,f){a=Object.freeze({CHANGE_ACCEPTED_ANSWER:"fa-type:change-accepted-answer",COMMENT_LIKE:"fa-type:comment-like",COMMENT_REACTION:"fa-type:comment-reaction",COMMENT_SET_SPAM:"fa-type:mark-spam",COMMENT_KEEP_SPAM:"fa-type:keep_spam",COMMENT_VOTE:"fa-type:comment_vote",DELETE_COMMENT:"fa-type:delete-comment",DELETE_COMMENT_REMOVE_COMMENTER:"fa-type:delete_comment_remove_commenter",DISABLE_COMMENTS:"fa-type:disable-comments",LIVE_DELETE_COMMENT:"fa-type:live-delete-comment",LIKE_ACTION:"fa-type:like",SUBSCRIBE_ACTION:"fa-type:subscribe",SHARE_COUNT_UPDATE_ACTION:"fa-type:share_count_update",REMOVE_PREVIEW:"fa-type:remove-preview",MARK_COMMENT_SPAM:"fa-type:mark-spam",MUTE_MEMBER:"fa-type:mute-member",CONFIRM_COMMENT_REMOVAL:"fa-type:confirm-remove",TRANSLATE_COMMENT:"fa-type:translate-comment",TRANSLATE_ALL:"fa-type:translate-all-comments",COMMENT_LIKECOUNT_UPDATE:"fa-type:comment-likecount-update",ADD_COMMENT_ACTION:"fa-type:add-comment",REACTION:"fa-type:reaction",UPDATE_CONSTITUENT_BADGE:"fa-type:comment_update_constituent_title",COMMENT_AUTHOR_PIN_CHANGE:"fa-type:comment_author_pin_change"});f["default"]=a}),66); __d("UFI2FeedbackMode",[],(function(a,b,c,d,e,f){a=Object.freeze({EXPANDED:"expanded",NONE:"none",NEVER:"never",TOGGLE:"toggle"});f["default"]=a}),66); __d("UFIPaging",[],(function(a,b,c,d,e,f){a=Object.freeze({TOP:"top",BOTTOM:"bottom",ALL:"all"});f["default"]=a}),66); __d("UFIStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({DELETED:"status:deleted",SPAM:"status:spam",SPAM_DISPLAY:"status:spam-display",LIVE_DELETED:"status:live-deleted",FAILED_ADD:"status:failed-add",FAILED_EDIT:"status:failed-edit",PENDING_EDIT:"status:pending-edit"});f["default"]=a}),66); __d("UFIConstants",["CommentVoteReactionType","CommentVoteUIVersion","FeedbackPayloadSourceType","FeedbackSourceType","UFI2FeedbackActionType","UFI2FeedbackMode","UFIPaging","UFIStatus"],(function(a,b,c,d,e,f){"use strict";a=80;c=420;d=3;e=.6;var g=60,h=1e3,i=60,j=1,k="unavailable_comment_key";f.attachmentTruncationLength=a;f.UFIActionType=b("UFI2FeedbackActionType");f.UFICommentVoteType=b("CommentVoteReactionType");f.UFICommentVoteUIVersion=b("CommentVoteUIVersion");f.UFIFeedbackMode=b("UFI2FeedbackMode");f.UFIFeedbackSourceType=b("FeedbackSourceType");f.UFIPayloadSourceType=b("FeedbackPayloadSourceType");f.UFIStatus=b("UFIStatus");f.UFIPaging=b("UFIPaging");f.commentTruncationLength=c;f.commentTruncationMaxLines=d;f.commentTruncationPercent=e;f.commentURLTruncationLength=g;f.infiniteScrollRangeForQANDAPermalinks=h;f.maxScrollDistanceForAutoScroll=i;f.minCommentsForOrderingModeSelector=j;f.unavailableCommentKey=k}),66); __d("UFICommentMetadata.react",["cx","fbt","ix","BootloadedComponent.react","Image.react","JSResource","Middot.react","Timestamp.react","TrackingNodes","UFIConstants","XUISpinner.react","react"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l=k||d("react");a="ufi_comment_timestamp";var m="UFIFailureMessageIcon",n="UFIFailureMessage",o="uiLinkSubtle",p=function(a){a=a.status;return a===d("UFIConstants").UFIStatus.FAILED_ADD||a===d("UFIConstants").UFIStatus.FAILED_EDIT};b=function(a){function b(){var b;for(var c=arguments.length,d=new Array(c),e=0;ec("CommentsPluginStore").getMaxCommentLength()});a.forceUpdate()});this.$2=c("CommentsPluginStore").addListener("actorChange",function(){a.refs.composer.resetAttachment(),a.forceUpdate()})};d.componentWillUnmount=function(){this.$1&&this.$1.remove(),this.$2&&this.$2.remove()};d.$5=function(){return this.state.waitingAsyncResponse||this.state.unableToPost||c("CommentsPluginStore").isEmptyEditComposer(this.props.commentID)};d.render=function(){var a=c("CommentsPluginStore").getByID(this.props.commentID);return k.jsxs(c("CommentsPluginComposer.react"),{alwaysExpanded:!0,ref:c("stringRefShim")(this,"composer"),prefillText:a.prefillText,readOnly:this.state.waitingAsyncResponse,allowPhotoAttachments:c("CommentsPluginStore").getEnablePhoto(),allowStickerAttachments:c("CommentsPluginStore").getEnableSticker(),editCommentID:this.props.commentID,unableToPost:this.state.unableToPost,children:[k.jsxs("div",{className:"_5tr6 clearfix _2ph_",children:[k.jsx(c("XUIButton.react"),{disabled:this.$5(),label:i._(/*BTDS*/"L\u01b0u"),use:"confirm",className:"rfloat _3-99",onClick:this.$3}),k.jsx(c("XUIButton.react"),{disabled:this.state.waitingAsyncResponse,label:i._(/*BTDS*/"H\u1ee7y"),use:"default",className:"rfloat _3-99",onClick:this.$4})]}),this.props.children]})};return b}(k.Component);g["default"]=a}),226); __d("CommentsPluginComposerReply.react",["cx","fbt","CommentsPluginActions","CommentsPluginAuthorSelector.react","CommentsPluginComposer.react","CommentsPluginStore","ReactDOM_DEPRECATED","XUIButton.react","react","stringRefShim"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");a=function(a){function b(b,d){var e;e=a.call(this,b,d)||this;e.$3=function(){e.setState({waitingAsyncResponse:!0}),c("CommentsPluginActions").addReply(e.props.commentID),e.refs.composer.resetAttachment()};e.$4=function(){e.refs.composer.resetAttachment(),c("CommentsPluginActions").cancelReply(e.props.commentID)};e.state={waitingAsyncResponse:!1,unableToPost:!1};e.$1=null;return e}babelHelpers.inheritsLoose(b,a);var e=b.prototype;e.componentDidMount=function(){var a=this;this.$1=c("CommentsPluginStore").addListener("composerChange",function(){var b=c("CommentsPluginStore").getCreateComposerContent(a.props.commentID).visibleValue;a.setState({unableToPost:b.trim().length>c("CommentsPluginStore").getMaxCommentLength()});a.forceUpdate()});this.$2=c("CommentsPluginStore").addListener("actorChange",function(){a.refs.composer.resetAttachment(),a.forceUpdate()});var b=d("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(this);b.scrollIntoView&&b.scrollIntoView()};e.componentWillUnmount=function(){this.$1&&this.$1.remove(),this.$2&&this.$2.remove()};e.$5=function(){return this.state.waitingAsyncResponse||this.state.unableToPost||c("CommentsPluginStore").isEmptyCreateComposer(this.props.commentID)};e.render=function(){var a=c("CommentsPluginStore").getByID(this.props.commentID);return k.jsx(c("CommentsPluginComposer.react"),{allowPhotoAttachments:c("CommentsPluginStore").getEnablePhoto(),allowStickerAttachments:c("CommentsPluginStore").getEnableSticker(),ref:c("stringRefShim")(this,"composer"),alwaysExpanded:!0,prefillText:a.prefillText,readOnly:this.state.waitingAsyncResponse,parentCommentIDOfNewReply:this.props.commentID,unableToPost:this.state.unableToPost,placeholder:i._(/*BTDS*/"Tr\u1ea3 l\u1eddi..."),children:k.jsxs("div",{className:"_5tr6 clearfix _2ph_",children:[k.jsx(c("CommentsPluginAuthorSelector.react"),{}),k.jsx(c("XUIButton.react"),{disabled:this.state.waitingAsyncResponse,label:i._(/*BTDS*/"H\u1ee7y"),use:"default",className:"_3-99",onClick:this.$4}),k.jsx(c("XUIButton.react"),{disabled:this.$5(),label:i._(/*BTDS*/"Tr\u1ea3 l\u1eddi"),use:"confirm",className:"_3-99",onClick:this.$3})]})})};return b}(k.Component);g["default"]=a}),226); __d("CommentsPluginMenu.react",["fbt","ix","CommentsPluginAction","CommentsPluginActions","CommentsPluginConfig","CommentsPluginStore","Image.react","MixinCommentsPluginConfirmAction","PopoverMenu.react","ReactXUIMenu","Tooltip","classWithMixins","mixin","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");a=function(a){function b(b,e){var f;f=a.call(this,b,e)||this;f.$CommentsPluginMenu$p_1=function(){f.setState({opened:!0})};f.$CommentsPluginMenu$p_2=function(){f.setState({opened:!1})};f.$CommentsPluginMenu$p_4=function(a,b){a=b.item.getValue();f.requiresConfirmation(a)?f.confirmAction(a,f.props.commentID,b.event.pageY):a===d("CommentsPluginAction").SHOW||a===d("CommentsPluginAction").COLLAPSE?f.$CommentsPluginMenu$p_3():c("CommentsPluginActions")[a](f.props.commentID)};f.state={opened:!1};return f}babelHelpers.inheritsLoose(b,a);var e=b.prototype;e.isOpen=function(){return this.state.opened};e.$CommentsPluginMenu$p_3=function(){c("CommentsPluginActions").toggleVisibility(this.props.commentID)};e.$CommentsPluginMenu$p_5=function(a,b){var e=c("CommentsPluginStore").isReply(b.id),f=c("CommentsPluginStore").getUser().id===c("CommentsPluginStore").getAuthor(b.id).id;switch(a){case d("CommentsPluginAction").DELETE:if(!b.canEdit||!f)return null;break;case d("CommentsPluginAction").EDIT:if(!b.canEdit||c("CommentsPluginStore").isThreadClosed()||!f)return null;break;case d("CommentsPluginAction").FLAG:if(b.canEdit||b.collapsed||b.flagged)return null;break;case d("CommentsPluginAction").COLLAPSE:if(e||b.collapsed||b.flagged)return null;break;case d("CommentsPluginAction").BAN:case d("CommentsPluginAction").HIDE:if(!c("CommentsPluginStore").isViewerModerator())return null;break;case d("CommentsPluginAction").REPORT:if(!b.reportURI||b.canEdit)return null;break;case d("CommentsPluginAction").EMBED:f=b.canEmbed;if(e){e=c("CommentsPluginStore").getByID(b.targetID);f=f&&e.canEmbed}if(b.flagged||!c("CommentsPluginConfig").commentEmbed||!f)return null;break;default:break}return k.jsx(c("ReactXUIMenu").Item,{value:a,children:d("CommentsPluginAction").getLabel(a)},a)};e.render=function(){var a=this,b=c("CommentsPluginStore").getByID(this.props.commentID);return k.jsxs("div",{children:[k.jsx(c("PopoverMenu.react"),{alignh:"right",onShow:this.$CommentsPluginMenu$p_1,onHide:this.$CommentsPluginMenu$p_2,menu:k.jsx(c("ReactXUIMenu"),{onItemClick:this.$CommentsPluginMenu$p_4,children:d("CommentsPluginAction").getMenuActions().map(function(c){return a.$CommentsPluginMenu$p_5(c,b)})}),children:k.jsx("a",{children:k.jsx(c("Image.react"),babelHelpers["extends"]({},c("Tooltip").propsFor(h._(/*BTDS*/"Menu")),{src:i("96566")}))})}),this.renderActionConfirmationDialog()]})};return b}(c("classWithMixins")(k.Component,c("mixin")(d("MixinCommentsPluginConfirmAction"))));g["default"]=a}),226); __d("UFIVideoPlayerRegistry",["EventEmitter","ViewportBounds","destroyOnUnload","getOrCreateDOMID"],(function(a,b,c,d,e,f){"use strict";var g=new(b("EventEmitter"))(),h=new Map(),i=new Map(),j=new Map(),k=new Map(),l=new Set(),m=new Map();b("destroyOnUnload")(function(){g.removeAllListeners(),h.clear(),i.clear(),j.clear(),k.clear(),l.clear()});function n(a){a=a;var b=[];while(a)b.unshift(a),a=a.parentElement;return b}function o(a,b){var c=n(a);a=null;var d=null;b.forEach(function(b){var e=b[0];b=b[1];e=n(e);for(var f=0;fd)&&(d=f,a=b);break}f===c.length-1&&((d===null||f>d)&&(d=f,a=b))}});return a}function p(a,b){var c=n(a);a=null;var d=null;b.forEach(function(b){var e=b[0];b=b[1];e=n(e);for(var f=0;fd)&&(d=f,a=b);break}});return a}var q={registerVideoPlayerController:function(a){var b=a.getVideoID(),c=k.get(b);c?c.push(a):(c=[a],k.set(b,c),j["delete"](b));l.forEach(function(a){return a()});a=h.get(b);if(!a)return;a.forEach(function(a){return q._associateUFIController(a,b)})},addOnRegisterListener:function(a){l.add(a)},removeOnRegisterListener:function(a){l["delete"](a)},getAvailableVideoPlayerController:function(a){return i.get(a)},seekAvailableVideoPlayerController:function(a,b){a=q.getAvailableVideoPlayerController(a);if(!a)return;["ready","playing","paused","finished"].includes(a.getState())&&(a.pause("seek_initiated"),a.seek(b),a.play("seek_initiated"))},scrollToAvailableVideo:function(a){a=q.getAvailableVideoPlayerController(a);if(!a)return;a=b("ViewportBounds").getElementPosition(a.getRootNode());window.scroll(0,a.y)},setAvailableVideoPlayerControllerSphericalViewport:function(a,b){a=q.getAvailableVideoPlayerController(a);if(!a)return;a.emit("SphericalVideoViewportTagComment/click",b)},getAvailableVideoPlayerControllerForElement:function(a,c){if(!a)return null;var d=j.get(c)||new Map(),e=b("getOrCreateDOMID")(a);a=d.get(e)||q.findVideoPlayerControllerForElement(a,c);d.set(e,a);j.set(c,d);return a},getAvailableVideoPlayerControllerTimeForElement:function(a,b){if(!a)return null;a=q.getAvailableVideoPlayerControllerForElement(a,b);if(!a)return null;b=a.getCurrentTimePosition();return b>=0?Math.floor(b):null},getAvailableVideoPlayerControllerTime:function(a){a=q.getAvailableVideoPlayerController(a);if(!a)return null;a=a.getCurrentTimePosition();return a>=0?Math.floor(a):null},registerUFIController:function(a,b,c){var d=a.getInstanceID(),e=a.getFluentContentToken();if(!e)return;var f=h.get(e);f?f.push(a):(f=[a],h.set(e,f));g.addListener(d+"/register",b);g.addListener(d+"/unregister",c);q._associateUFIController(a,e)},getAvailableUFIController:function(a){var b=m.get(a);if(b)return b;var c=h.get(a.getVideoID());if(!c)return null;c.length===1?b=c[0]:b=p(a.getRootNode(),c.map(function(a){return[a.getRootNode(),a]}));if(b){c=q.findVideoPlayerControllerForElement(b.getRootNode(),a.getVideoID());if(c!==a)return null;m.set(a,b)}return b},findVideoPlayerControllerForElement:function(a,b){b=k.get(b);if(!b)return null;if(b.length===1)return b[0];return!a?null:o(a,b.filter(function(a){return!a.isState("destroyed")}).map(function(a){return[a.getRootNode(),a]}))},unregisterVideoPlayerControllerForElement:function(a,b){var c=k.get(b);if(!c)return;var d=q.findVideoPlayerControllerForElement(a,b);if(d==null)return;a=c.findIndex(function(a){return a.getRootNode()===d.getRootNode()});c.splice(a,1);k.set(b,c)},_associateUFIController:function(a,c){var d=a.getInstanceID();a=q.findVideoPlayerControllerForElement(a.getRootNode(),c);if(!a||a.isState("destroyed"))return;c=i.get(d);if(c){if(!c.isState("destroyed")&&b("getOrCreateDOMID")(c.getRootNode())===b("getOrCreateDOMID")(a.getRootNode()))return;g.emit(d+"/unregister")}i.set(d,a);g.emit(d+"/register",a)}};e.exports=q}),null); __d("UFICommentUtils",["HovercardLinkInterpolator","TextDelightRange.react","UFIConstants","UFIVideoPlayerRegistry","URI","URITruncator","VideoTimestampsClicksWWWTypedLogger","react","transformTextRanges"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a,b){d("UFIConstants").commentURLTruncationLength&&(a&&a.length>0&&(b=c("transformTextRanges")(b,a,function(a,b){b=b.entity&&(b.entity.external||b.entity.__typename==="ExternalUrl");return b?c("URITruncator")(a,d("UFIConstants").commentURLTruncationLength):a})));return b}function b(a,b,e,f,g){return function(h,i){if(i.videoTimestamp){if(f)return j.jsx("span",{children:i.entity});var k=function(a){a.preventDefault();new(c("VideoTimestampsClicksWWWTypedLogger"))().setVideoTimestamp(i.integerTimestamp).setCommentID(e).setIsContentTimestamp(!1).log();b&&(d("UFIVideoPlayerRegistry").seekAvailableVideoPlayerController(b,i.integerTimestamp),d("UFIVideoPlayerRegistry").scrollToAvailableVideo(b));return!1};return j.jsx("a",{className:"TimestampLink",onClick:k,href:"#",children:i.entity})}else if(i.sphericalViewport){k=function(a){a.preventDefault();b&&d("UFIVideoPlayerRegistry").setAvailableVideoPlayerControllerSphericalViewport(b,{yaw:i.yaw,pitch:i.pitch});return!1};return j.jsx("a",{onClick:k,href:"#",children:i.entity})}else if(i.sphericalViewportAndTimestamp){k=function(a){a.preventDefault();b&&(d("UFIVideoPlayerRegistry").setAvailableVideoPlayerControllerSphericalViewport(b,{yaw:i.yaw,pitch:i.pitch}),d("UFIVideoPlayerRegistry").seekAvailableVideoPlayerController(b,i.integerTimestamp));return!1};return j.jsx("a",{onClick:k,href:"#",children:i.entity})}else if(i.campaign)return j.jsx(c("TextDelightRange.react"),{campaignID:i.campaign.id,commentPrivacy:g||void 0,delightStyles:i.campaign.delight_styles,surface:"comment",children:h});else return c("HovercardLinkInterpolator")(h,i,"_blank",a,"ufi")}}function e(a){if(!a)return a;var b=[];a.forEach(function(a){b.push(babelHelpers["extends"]({},a))});return b}function f(a,b){return!a?b:new(h||(h=c("URI")))(b).addQueryData("rc","p").toString()}function k(a,b,c,d){if(!a)return!1;var e=0,f,g;for(var h=0;h1)return!0;if(c[f.id]){g=b?b[f.id]:[];for(var i=0;i1)return!0}}}return!1}g.getCommentTextWithTruncatedURIs=a;g.getCommentBodyInterpolator=b;g.shallowCopyRanges=e;g.annotateProfileURIIfPublic=f;g.shouldShowTranslateAll=k}),98); __d("CommentsPluginUFIActor.react",["cx","fbt","Badge.react","Focus","HovercardLink","Locale","ReactDOM_DEPRECATED","UFICommentUtils","react","stringRefShim"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");a=function(a){function b(){return a.apply(this,arguments)||this}babelHelpers.inheritsLoose(b,a);var e=b.prototype;e.componentDidMount=function(){this.props.focusOnMount&&d("Focus").setWithoutOutline(d("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(this.refs.authorName))};e.render=function(){var a=this,b=this.props.author,e=d("Locale").isRTL()?"rtl":"ltr",f=(this.props.isAuthorWeakReference?"weakReference":"")+" UFICommentActorName",g=[];this.props.isAuthorWeakReference&&g.push(k.jsx("i",{className:"UFIWeakReferenceIcon"},"icon"));this.props.author.badgeSrc&&this.props.author.badgeSrc.length>0&&g.push(k.jsxs("span",{children:[k.jsx(c("Badge.react"),{size:"medium",type:"subscription"},"badge")," "]}));b.persona?g.push(i._(/*BTDS*/"{author} ({persona})",[i._param("author",b.firstName),i._param("persona",b.persona)])):this.props.useFirstName?g.push(b.firstName):this.props.author.isBusinessPersona&&this.props.author.assetRole?g.push(b.name+" "+i._(/*BTDS*/"(")+this.props.author.assetRole+i._(/*BTDS*/")")):g.push(b.name);this.props.isAuthorNonCoworker?g.push(k.jsx(c("Badge.react"),{type:"work_non_coworker"},"noncoworker")):this.props.isAuthorBot&&g.push(k.jsx(c("Badge.react"),{type:"bot"},"bot"));var h=this.props.isAdminViewer?"ufi_admin":"ufi",j=babelHelpers["extends"]({},this.props);delete j.author;delete j.delimiter;delete j.dialogUrl;delete j.disableAuthorLink;delete j.focusOnMount;delete j.groupOrEventID;delete j.hovercardLocation;delete j.isAdminViewer;delete j.isAuthorBot;delete j.isAuthorNonCoworker;delete j.isAuthorWeakReference;delete j.isPublic;delete j.showHovercard;delete j.useFirstName;h=this.props.showHovercard?d("HovercardLink").constructEndpointWithGroupLocationAndExtraParams(b,this.props.groupOrEventID,this.props.hovercardLocation?this.props.hovercardLocation:h,this.props.isAuthorWeakReference,{is_public:this.props.isPublic}).toString():null;var l=b.uri&&!this.props.disableAuthorLink;b=l?d("UFICommentUtils").annotateProfileURIIfPublic(!!this.props.isPublic,b.uri):null;l=l?k.jsx("a",babelHelpers["extends"]({},j,{className:f,"data-ft":this.props["data-ft"],"data-hovercard":h,dir:e,href:b,ref:c("stringRefShim")(this,"authorName"),children:g})):k.jsx("span",{className:f,dir:e,ref:c("stringRefShim")(this,"authorName"),children:g});this.props.dialogUrl&&(l=k.jsx("a",babelHelpers["extends"]({},j,{ajaxify:this.props.dialogUrl,className:f,"data-ft":this.props["data-ft"],"data-hovercard":h,dir:e,href:b,ref:c("stringRefShim")(this,"authorName"),rel:"dialog",children:g})));return k.jsxs("span",{children:[l,k.Children.map(this.props.children,function(b){return b?[b.key==="badge"||b.key==="constituentTitle"||b.key==="friendsOnlyBadge"?"":a.props.delimiter,b]:null})]})};return b}(k.Component);a.defaultProps={delimiter:" \xb7 ",isAdminViewer:!1,isPublic:!1};g["default"]=a}),226); __d("SeeMore.react",["cx","fbt","joinClasses","react"],(function(a,b,c,d,e,f,g,h,i){var j,k=j||d("react");a=function(a){function b(){var b;for(var c=arguments.length,d=new Array(c),e=0;ek)},babelHelpers.assertThisInitialized(b))||babelHelpers.assertThisInitialized(b)}babelHelpers.inheritsLoose(b,a);var d=b.prototype;d.render=function(){var a=this.props.text||"",b=this.props.ranges||[],d=this.props.textDelightRanges||[];a=a.replace(/\s*$/,"");var e=this.props.maxLines,f=this.props.maxLength;if(f&&a.length>f){var g=this.props.truncationPercent||.6;f=Math.floor(g*f)}g=null;this.props.shouldExpand||(g=c("findSplitPointForText")(a,f,e));if(g!=null){while(a[g-1]==="\n")g--;f=c("partitionTextAndRanges")(a,b,d,g);e=j.jsx(c("TextWithEntities.react"),{aggregatedRanges:this.props.aggregatedRanges,interpolator:this.props.interpolator,ranges:f.before.ranges,textDelightRanges:f.before.delightRanges,renderEmoji:this.props.renderEmoji,renderEmoticons:this.props.renderEmoticons,text:f.before.text});if(!this.props.showSeeMore)return j.jsxs("span",{className:this.props.className,"data-ft":this.props["data-ft"],dir:this.props.dir,lang:this.props.lang,children:[e,j.jsx("span",{children:h._(/*BTDS*/"\u2026")})]});d=this.$1(f.before.text);return j.jsx("span",{"data-ft":this.props["data-ft"],dir:this.props.dir,lang:this.props.lang,children:j.jsxs(c("SeeMore.react"),{allowSeeMoreLinebreak:d,className:this.props.className,clickCallback:this.props.markViewerHasInteracted,children:[e,j.jsx(c("TextWithEntities.react"),{aggregatedRanges:this.props.aggregatedRanges,interpolator:this.props.interpolator,ranges:f.after.ranges,textDelightRanges:f.after.delightRanges,renderEmoji:this.props.renderEmoji,renderEmoticons:this.props.renderEmoticons,text:f.after.text})]})})}else return j.jsx("span",{"data-ft":this.props["data-ft"],dir:this.props.dir,lang:this.props.lang,children:j.jsx(c("TextWithEntities.react"),{aggregatedRanges:this.props.aggregatedRanges,className:this.props.className,imageRanges:this.props.imageRanges,interpolator:this.props.interpolator,ranges:b,showEmojisStandalone:this.props.showEmojisStandalone,textDelightRanges:this.props.textDelightRanges,renderEmoji:this.props.renderEmoji,renderEmoticons:this.props.renderEmoticons,text:a})})};return b}(j.Component);a.defaultProps={showSeeMore:!0};g["default"]=a}),226); __d("GamesVideoFanSupportAttachmentHandler",["cx","ifRequired"],(function(a,b,c,d,e,f,g,h){"use strict";var i="tip_attachment_support_link",j=new Set();function a(a){if(!a)return;var b=a.querySelector('[name="'+i+'"]');b&&!j.has(b)&&(b.addEventListener("mouseover",function(){return k(b)}),b.addEventListener("click",function(){for(var a=arguments.length,c=new Array(a),d=0;d1?b-1:0),d=1;d=0}function j(a,b,c){a[b]||h(0,2123,a.type,b,c)}a=function(a){function b(){return a.apply(this,arguments)||this}babelHelpers.inheritsLoose(b,a);var d=b.prototype;d.dispatch=function(b){var d=this;j(b,"instanceID","contextArgs.instanceid");j(b,"ftentidentifier","contextArgs.ftentidentifier");i(b.type,c("UFICommentActionType"))&&j(b,"fbid","comment.fbid");try{a.prototype.dispatch.call(this,b)}catch(e){c("dangerouslyBypassDispatchError")(function(){return a.prototype.dispatch.call(d,b)})}};return b}(c("ReactDispatcher_DEPRECATED"));b=new a();g["default"]=b}),98); __d("UFICommentVoteSyncStore",["FluxReduceStore","UFIActionTypes","UFIConstants","UFIDispatcherBase"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){function b(){var b;for(var c=arguments.length,e=new Array(c),f=0;f0}return null};return b}(c("UFIKeyValueStore"));b=new a(c("UFIDispatcherBase"));g["default"]=b}),98); __d("UFIFeedbackStore",["FluxReduceStore","UFIDispatcherBase"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){function b(){var b;for(var c=arguments.length,d=new Array(c),e=0;ethis.lastRequestedOffset+this.lastRequestedLength)&&(this.lastRequestedOffset=i,this.lastRequestedLength=g,this.fetchComments(i,g,c))}else this.dataSource.executeOrEnqueue(f,function(c){return d(e.commentsFromCommentIDs(c,a,b))})};b.getCommentsOrThrow=function(a){var b=this;a=[a.getLength(),a.getOffset()];var c=a[0],d=a[1],e={};new Array(c).fill().forEach(function(a,c){a=c+d;c=b.dataSource.getResource(a);if(!c)throw new Error("Tried to get nonexistent comment");e[a]=c});return this.commentsFromCommentIDs(e,d,c)};b.fetchComments=function(a,b,c){};b.commentsFromCommentIDs=function(a,b,c){return{}};b.reset=function(){var a=this.dataSource.getAllResources();this.dataSource.reset();this.count=0;this.deletedCount=0;this.deletedComments={};this.lastRequestedOffset=0;this.lastRequestedLength=0;return a};b.deleteComment=function(a){a in this.deletedComments||(this.deletedComments[a]=!0,this.deletedCount++)};b.updateCommentCount=function(a){this.count=a,this.deletedCount=0};b.getFeedbackTargetID=function(){return this.feedbackTargetID};b.getCommentCount=function(){return this.count};b.getDeletedCount=function(){return this.deletedCount};b.getDisplayedCommentCount=function(){return this.count-this.deletedCount};b.getBasePermalink=function(){return this.basePermalink};b.buildCommentPermalink=function(a,b,c){return null};b.getPermalinkForComment=function(a){return this.commentPermalinks[a]};return a}();g["default"]=a}),98); __d("MercuryMessagingLightswitch",[],(function(a,b,c,d,e,f){"use strict";a={guard:function(a){return},shouldRun:function(){return!1}};b=a;f["default"]=b}),66); __d("MercuryServerURIs",[],(function(a,b,c,d,e,f){"use strict";a="/ajax/mercury/thread_info.php";b="/ajax/mercury/mark_folder_as_read.php";c="/ajax/mercury/change_read_status.php";d="/ajax/mercury/mark_seen.php";e="/ajax/mercury/threadlist_info.php";var g="/ajax/mercury/mark_spam.php",h="/ajax/mercury/unmark_spam.php",i="/ajax/mercury/unread_threads.php",j="/ajax/mercury/change_pinned_status.php",k="/ajax/mercury/change_archived_status.php",l="/ajax/mercury/change_page_follow_up_status.php",m="/ajax/mercury/delete_thread.php",n="/ajax/mercury/delete_messages.php",o="/ajax/mercury/delivery_receipts.php",p="/ajax/mercury/move_thread.php",q="/ajax/mercury/change_mute_thread.php";f.THREAD_INFO=a;f.MARK_FOLDER_READ=b;f.CHANGE_READ_STATUS=c;f.MARK_SEEN=d;f.THREADLIST_INFO=e;f.MARK_SPAM=g;f.UNMARK_SPAM=h;f.UNREAD_THREADS=i;f.CHANGE_PINNED_STATUS=j;f.CHANGE_ARCHIVED_STATUS=k;f.CHANGE_PAGE_FOLLOW_UP_STATUS=l;f.DELETE_THREAD=m;f.DELETE_MESSAGES=n;f.DELIVERY_RECEIPTS=o;f.MOVE_THREAD=p;f.CHANGE_MUTE_THREAD=q}),66); __d("MessengerWebGraphQLTypedLogger",["Banzai","GeneratedLoggerUtils"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){this.$1={}}var c=a.prototype;c.log=function(a){b("GeneratedLoggerUtils").log("logger:MessengerWebGraphQLLoggerConfig",this.$1,b("Banzai").BASIC,a)};c.logVital=function(a){b("GeneratedLoggerUtils").log("logger:MessengerWebGraphQLLoggerConfig",this.$1,b("Banzai").VITAL,a)};c.logImmediately=function(a){b("GeneratedLoggerUtils").log("logger:MessengerWebGraphQLLoggerConfig",this.$1,{signal:!0},a)};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setErrorMessage=function(a){this.$1.error_message=a;return this};c.setEvent=function(a){this.$1.event=a;return this};c.setQueryParams=function(a){this.$1.query_params=a;return this};return a}();c={error_message:!0,event:!0,query_params:!0};f["default"]=a}),66); __d("areJSONRepresentationsEqual",[],(function(a,b,c,d,e,f){function a(a,b){return JSON.stringify(a)==JSON.stringify(b)}f["default"]=a}),66); __d("getByPath",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){a=a;for(var d=0;d0){var d={};a.forEach(function(a){return Object.assign(d,a.roger)});var f=[];a.forEach(function(a){return f.push.apply(f,a.delivery_receipts)});var g=[];a.forEach(function(a){return g=g.concat(a.actions)});g=g.filter(Boolean);a={actions:g,threads:a.map(function(a){return a.thread}).filter(Boolean),end_of_history:a.map(function(a){return a.end_of_history}).filter(Boolean),roger:d,delivery_receipts:f,payload_source:"server_fetch_thread_info"};a=new(b("AsyncResponse"))(e,a);c._handleResponse(a)}else c._handleResponse(new(b("AsyncResponse"))(e,{}))},function(a){c._handleGraphQLError("thread_failure",q,a,e)})},"MercuryServerDispatcher");return}e.setHandler(function(a){b("MercuryMessagingLightswitch").guard(function(){b("BanzaiLogger").log("ChatPerfLoggerConfig",{event:"async_request",duration:(g||(g=b("performanceAbsoluteNow")))()-d,endpoint:c._endpoint})}),c._handleResponse(a)}).setErrorHandler(this._handleError.bind(this)).setTransportErrorHandler(this._handleTransportError.bind(this)).setServerDialogCancelHandler(this._handleServerDialogCancel.bind(this));this._timeout&&this._timeoutHandler&&e.setTimeoutHandler(this._timeout,this._handleTimeout.bind(this));e.send()},_handleGraphQLError:function(a,c,d,e){var f=null,g=e.getData().retry_count;typeof d.toString==="function"&&(f=d.toString());if(typeof d.getRequest!=="function"){var h=d.errors&&d.errors[0];d=new(b("AsyncResponse"))(e,d);d.errorSummary=d.errors&&d.errors.map();d.errorDescription=h?h.message:null;f=h&&h.message?h.message:f;d.silentError=h&&h.is_silent;d.transientError=h&&h.is_transient}g||new(b("MessengerWebGraphQLTypedLogger"))().setErrorMessage(f).setEvent(a).setQueryParams(JSON.stringify(c)).log();this._handleError(d)},_batchData:function(a,c){var d=this;if(this._mode==m.BATCH_SUCCESSIVE_UNIQUE&&this._pendingRequestData!==void 0&&b("areJSONRepresentationsEqual")(a,this._pendingRequestData))return;else{var e=this._batches.length-1;e>=0?c?this._batches[e].combineWithOlder(a,this._combineData):this._batches[e].combineWith(a,this._combineData):this._batches.push(new o(a));b("MercuryMessagingLightswitch").guard(function(){i.debug("batch",JSON.stringify({endpoint:d._endpoint}))})}},_batchSend:function(){this._batches[0]&&(this._send(this._batches[0].getData()),this._batches.shift())},_handleResponse:function(a){var c=this;this._inFlight--;b("MercuryMessagingLightswitch").guard(function(){i.log("response",JSON.stringify({endpoint:c._endpoint,inflight_count:c._inFlight}))});var d=a.getPayload();l=d&&d.kill_chat;l&&b("MercuryMessagingLightswitch").guard(function(){i.log("killswitch_enabled",JSON.stringify({endpoint:c._endpoint,inflight_count:c._inFlight}))});d&&d.error_payload?this._errorHandler&&this._errorHandler(a):this._handler&&this._handler(d,a.getRequest());(this._mode==m.BATCH_SUCCESSIVE||this._mode==m.BATCH_SUCCESSIVE_UNIQUE||this._mode==m.BATCH_SUCCESSIVE_PIGGYBACK_ON_ERROR||this._mode==m.BATCH_CONDITIONAL)&&this._batchSend();delete this._pendingRequestData},_createErrorRecord:function(a){return a instanceof b("AsyncResponse")?{endpoint:this._endpoint,user:this._requestUserID,time:Date.now(),code:a.getError(),description:a.getErrorDescriptionString(),summary:a.getErrorSummary(),isSilent:a.isSilent,isTransient:a.isTransient(),isBlockedAction:a.isBlockedAction(),isWarning:a.getErrorIsWarning(),payload:a.getPayload()}:{endpoint:this._endpoint,user:this._requestUserID,time:Date.now(),description:a.toString()}},_postErrorHandler:function(a){var c=this;this._inFlight--;b("MercuryMessagingLightswitch").guard(function(){i.error("error",JSON.stringify({endpoint:c._endpoint,inflight_count:c._inFlight,error:a instanceof b("AsyncResponse")?a.getError()+" "+a.getErrorDescription():a instanceof Error?a.toString():"Unknown"}))});k.push(this._createErrorRecord(a));k.length>j&&(k=k.slice(-1*j));var d=this._mode;d==m.BATCH_SUCCESSIVE||d==m.BATCH_SUCCESSIVE_UNIQUE||d==m.BATCH_CONDITIONAL?this._batchSend():d==m.BATCH_SUCCESSIVE_PIGGYBACK_ON_ERROR&&(this._batches[0]?(this._batchData(this._pendingRequestData,!0),this._batchSend()):this._batchData(this._pendingRequestData,!0));delete this._pendingRequestData},_handleError:function(a){this._errorHandler&&this._errorHandler(a),this._postErrorHandler(a)},_handleTransportError:function(a){this._transportErrorHandler&&this._transportErrorHandler(a),this._postErrorHandler(a)},_handleTimeout:function(a){this._timeoutHandler&&this._timeoutHandler(a),this._postErrorHandler(new Error("Endpoint Timeout"))},_handleServerDialogCancel:function(a){this._serverDialogCancelHandler&&this._serverDialogCancelHandler(a),this._postErrorHandler(a)}});function o(a){this._data=a,this._size=1}Object.assign(o.prototype,{getData:function(){return this._data},getSize:function(){return this._size},combineWith:function(a,b){this._data=b(this._data,a),this._size++},combineWithOlder:function(a,b){this._data=b(a,this._data),this._size++}});e.exports=m}),null); __d("UFIReplyCommentListImpl",["ActorURI","MercuryServerDispatcher","UFIComments","UFIPagedCommentListImpl","URI"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(a){function b(b,c,d){b=a.call(this,b)||this;b.parentCommentID=c;b.containerOrderingMode=d;return b}babelHelpers.inheritsLoose(b,a);var e=b.prototype;e.fetchComments=function(a,b,c){a={ft_ent_identifier:this.feedbackTargetID,parent_comment_ids:[this.parentCommentID],source:null,offsets:[a],lengths:[b],feed_context:c?c.feedContext:null,numpagerclicks:c?c.numPagerClicks:null,containerorderingmode:this.containerOrderingMode,translate_all:c?c.translateAll:null};(!c||!c.viewAs)&&(a[d("ActorURI").PARAMETER_ACTOR]=this.actorID);d("MercuryServerDispatcher").trySend("/ajax/ufi/reply_fetch.php",a)};e.commentsFromCommentIDs=function(a,b,c){var e={};for(var f=0;f=i&&(b===f.USER_ACTION||b===f.ENDPOINT_ADD_COMMENT)){h=n[e];h!==o&&(n[e]=!h||a.id===h||K(a.id)===h?a.id:o)}}M(a.id,new(c("ImmutableObject"))(m));c("UFICentralUpdates").didUpdateComment(a.id);c("UFICentralUpdates").didUpdateFeedback(e)})}function r(a,b){for(var c=0;c-1&&(g.splice(h,1),i=-1);h=Math.max(a.reactioncount+i,0);i=a.reactioncountreduced;i&&!isNaN(i)&&(d?i=d(h):i=h.toString());d=a.reactioncountmap||{};var j=a.reactioncountmapbyid||{},k,l=a.viewerreaction,m=a.viewerreactionid;l&&d[l]&&(d[l]["default"]=Math.max((d[l]["default"]||0)-1,0),k=d[l].reduced,k&&!isNaN(k)&&(d[l].reduced=d[l]["default"].toString()));m&&j[m]&&(j[m]["default"]=Math.max((j[m]["default"]||0)-1,0),k=j[m].reduced,k&&!isNaN(k)&&(j[m].reduced=j[m]["default"].toString()));f&&d[b]&&(d[b]["default"]=(d[b]["default"]||0)+1,k=d[b].reduced,k&&!isNaN(k)&&(d[b].reduced=d[b]["default"].toString()));f&&e!==null&&(j[e]||(j[e]={}),j[e]["default"]=(j[e]["default"]||0)+1,k=j[e].reduced,k&&!isNaN(k)&&(j[e].reduced=j[e]["default"].toString()));m=a.userreactions;(!m||Array.isArray(m))&&(m={});c&&(f?m[c]=b:delete m[c]);k=null;if(a.reactionsentences){f=!(l&&b);k={current:a.reactionsentences[f?"alternate":"current"],alternate:a.reactionsentences[f?"current":"alternate"]}}return{reactioncount:h,reactioncountmap:d,reactioncountmapbyid:j,reactioncountreduced:i,reactionsentences:k,reactorids:g,userreactions:m,viewerreaction:b,viewerreactionid:e}}function b(a){var b={};if(!a)return b;for(var c=0;c0)return;var f=c("UFIReactionSyncStore").getLastKnownReaction(a);if(b===f)return;d("UFIFeedbackTargets").getFeedbackTarget(a,function(a){a=n(a,f);c("UFICentralUpdates").handleUpdate(d("UFIConstants").UFIPayloadSourceType.USER_ACTION,{actions:a})})}function e(a,b){a=b.data;var e=a.ft_ent_identifier,f=a.reaction_type;c("UFISharedDispatcher").dispatch(d("UFIStoryAction").changeReactionSuccess({instanceid:a.instance_id,ftentidentifier:e},f));c("setImmediate")(function(){return k(e,f)})}function f(a){var b=a.request.data,e=b.ft_ent_identifier,f=b.reaction_type;j();var g=c("UFIConfig").reactionsHasReactionsRollback,h=c("UFIConfig").reactionsHasReactionsRetry;if(h&&!b.retry_attempt){d("MercuryServerDispatcher").trySend(c("XUFIReactionController").getURIBuilder().getURI(),babelHelpers["extends"]({},b,{retry_attempt:1}));return}c("UFISharedDispatcher").dispatch(d("UFIStoryAction").changeReactionFailure({instanceid:b.instance_id,ftentidentifier:e},f));g&&c("setImmediate")(function(){return k(e,f)});c("AsyncResponse").defaultErrorHandler(a)}function l(a,b,e){var f=c("UFIReactionPendingRequestsStore").getPendingRequestsForComment(b.fbid);if(f>0)return;var g=c("UFIReactionSyncStore").getLastKnownCommentReaction(b.fbid);if(e===g)return;d("UFIFeedbackTargets").getFeedbackTarget(a,function(a){a=m(b,a,g);c("UFICentralUpdates").handleUpdate(d("UFIConstants").UFIPayloadSourceType.USER_ACTION,{actions:a})})}function m(a,b,e){var f=a.id,g=[p(a,e,f,b.supportedreactions||[],b.actorforpost)];e=e===c("UFIReactionTypes").LIKE;if(b.hasviewerliked!==e){b=e?1:-1;g.push({commentid:f,actiontype:d("UFIConstants").UFIActionType.COMMENT_LIKE,viewerliked:e,likecount:(a.likecount||0)+b})}return g}function n(a,b){var e=[o(a,b)];b=b!==c("UFIReactionTypes").NONE;if(a.hasviewerliked!==b){var f=b?1:-1;e.push({actiontype:d("UFIConstants").UFIActionType.LIKE_ACTION,actorid:a.actorforpost,hasviewerliked:b,likecount:(a.likecount||0)+f,entidentifier:a.entidentifier,likesentences:{current:a.likesentences.alternate,alternate:a.likesentences.current}})}return e}function o(a,b){return babelHelpers["extends"]({actiontype:d("UFIConstants").UFIActionType.REACTION,actorid:a.actorforpost,entidentifier:a.entidentifier},d("UFIReactionsUtils").getReactionData(a,b,a.actorforpost,d("NumberFormat").formatInteger))}function p(a,b,c,e,f){var g={};for(var h=0;hb};b.isLoadingPrev=function(){return this.requestedOffset0){var f=Math.min(d,c.getRequestedOffset());d=Math.max(d+b,c.getRequestedOffset()+c.getRequestedLength());e.updateRequestedRange(f,d-f)}return e};return a}();f["default"]=a}),66); __d("UFIToplevelStreamedCommentList",["invariant","ClientIDs","LiveVideoUFIConfig","UFICentralUpdates","UFIComments","UFIConstants","UFIRange","UFIThreadedFacecastCommentsStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i=function(){function a(a){this.feedbackTargetID=a,this.commentIDs=[],this.deletedCount=0,this.totalCommentCount=0,this.addedCommentCountForUnseenCounter=0}var b=a.prototype;b.getFeedbackTargetID=function(){return this.feedbackTargetID};b.getClientHasAll=function(){return!1};b.getActualCommentCount=function(){return this.commentIDs.length};b.getCommentCount=function(){return this.totalCommentCount};b.getAddedCommentCountForUnseenCounter=function(){return this.addedCommentCountForUnseenCounter};b.getDisplayedCommentCount=function(){return this.getCommentCount()-this.getDeletedCount()};b.getDeletedCount=function(){return this.deletedCount};b.getPermalinkForComment=function(a){return""};b.getComments=function(a,b,d,e){e(this.getCommentsOrThrow(new(c("UFIRange"))(a,b),d))};b.getCommentsOrThrow=function(a,b){a=[a.getLength(),a.getOffset()];var c=a[0];a=a[1];a===0||h(0,2239);a=b.streamingOrderReversed;b={};for(var e=0;ef&&this.commentIDs.shift();c("UFICentralUpdates").didUpdateFeedback(this.feedbackTargetID)};b.deleteComment=function(a){this.deletedCount+=1;var b=[];for(var c=0;c0&&i=0}function d(a){return h[a]||null}function e(a){return i[a]||null}function k(a){var b=i[a],c=h[b];c&&c.includes(a)&&(h[b]=c.filter(function(b){return b!=a}),h[b].length==0&&delete h[b]);delete i[a]}function l(){j.forEach(function(a){return g[a]&&g[a]()}),g={},j=[]}f.registerController=a;f.registerSnowliftID=b;f.isSnowliftNode=c;f.getInstanceIDFromFTEntIdentifier=d;f.getFTEntIdentifierFromInstanceID=e;f.cleanupInstance=k;f.cleanupSnowliftNodes=l}),66); __d("UFIVisibility",[],(function(a,b,c,d,e,f){"use strict";a=Object.freeze({VISIBLE:"visible",HIDDEN:"hidden"});f["default"]=a}),66); __d("UFICommentVisibilityStore",["invariant","FluxReduceStore","UFIComments","UFIDispatcherBase","UFILivePinnedCommentStore","UFIRootRegistry","UFIVisibility","filterObject"],(function(a,b,c,d,e,f,g,h){"use strict";function i(a,b){b===void 0&&(b=null);return b&&b.comment.fbid?a+"-"+b.comment.fbid+(b.isLivePinnedComment?"-P":"")+(b.isInLiveVideoReplyMode?"-R":""):a}function j(a,b){return a===b||a.startsWith(b+"-")}function k(a){a=d("UFIRootRegistry").getInstanceIDFromFTEntIdentifier(a);return a?a:[]}function l(a){return{instanceid:a}}a=function(a){function b(){var b;for(var e=arguments.length,f=new Array(e),g=0;gd("UFIConstants").maxScrollDistanceForAutoScroll};c.getScrollDist=function(a){return this.getInstanceState(a).scrollDist};c.getUnseenComments=function(a){return this.getInstanceState(a).unseenComments};c.getUnseenCommentsByThread=function(a){return this.getInstanceState(a).unseenCommentsByThread};c.getUnseenCommentsInThread=function(a,b){a=this.getUnseenCommentsByThread(a);return a[b]||0};c.shouldAddUnseenComments=function(a){return this.shouldAddUnseenCommentsForState(this.getInstanceState(a))};c.shouldAddUnseenCommentsForState=function(a){return a.scrollDist>d("UFIConstants").maxScrollDistanceForAutoScroll||a.commentReactionsMenuShown&&a.scrollDist>=h};return b}(c("FluxReduceStore"));a.__moduleID=f.id;b=new a(c("UFIDispatcherBase"));g["default"]=b}),98); __d("UFINewCommentsPillUtils",["UFISharedDispatcher","UFIStoryAction","UFIUnseenCommentsStore","vulture"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){c("vulture")("dWKDtdN10_POu5Wm0paOE1XDxqQ=");var d=a?a.length:0,e=b?b.length:0;if(!d&&!e)return 0;var f,g=0;if(a)for(d=d-1;d>=0;d--){var h=a[d];if(h.__typename==="saved"){f=h.id;break}g++}h=0;d=!1;if(b)for(a=e-1;a>=0;a--){e=b[a];if(e.id===f){d=!0;break}h++}e=h-g;if(!f||d)return e;else return 0}function b(a,b){c("vulture")("wgoDF9hNSbbsHEIJJiVk_8q_Oic=");b=b.target;b instanceof HTMLElement&&h(b,a)}function h(a,b){c("vulture")("gjw3hjqlKTrj469igDtuan3cy94=");a=a.scrollHeight-a.offsetHeight-a.scrollTop;c("UFISharedDispatcher").dispatch(d("UFIStoryAction").setCommentsScrollDistance(b,a))}function e(a,b){c("vulture")("GRJ5DJUSPwN-BxK9l9aE9UUnOF4=");if(a&&b){var d=a.scrollHeight-a.offsetHeight;b=b.Animation;new b(a).to("scrollTop",d).ease(b.ease.end).duration(Math.min(400,Math.max(200,(d-a.scrollTop)/1.5))).ondone(function(){c("vulture")("-J92PPgWqTb122I2IsP6IdhhRaE="),a.scrollTop=a.scrollHeight-a.offsetHeight}).go()}}function f(a,b){c("vulture")("bgZNHf-Xyr-VM5suAEbDaZWZDs4=");a.type==="handle_new_facecast_reply"&&c("UFISharedDispatcher").dispatch(d("UFIStoryAction").addFacecastReply(b,a.replyCommentID));b=b.instanceid;!c("UFIUnseenCommentsStore").getScrolledUp(b)&&c("UFIUnseenCommentsStore").getCommentReactionsMenuShown(b)?setTimeout(function(){c("vulture")("pmpONeFIUJcYEALR5ah4ttKNhBI="),c("UFISharedDispatcher").dispatch(a)},0):c("UFISharedDispatcher").dispatch(a)}g.findNumNewComments=a;g.handleScroll=b;g.updateScrolledUp=h;g.scrollToBottom=e;g.dispatchNewCommentAction=f}),98); __d("UFICommentAttachment.react",["cx","BootloadedComponent.react","CSS","DOM","DOMQuery","GamesVideoFanSupportAttachmentHandler","HTML","Image.react","JSResource","Link.react","LitestandShareAttachment","Random","ReactDOM_DEPRECATED","SubscriptionsHandler","UFILocallyComposedCommentStore","XUISpinner.react","react","stringRefShim"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=55;a="ufi_comment_photo";var l=80,m="ufi_comment_sticker";b=function(a){function b(b){b=a.call(this,b)||this;b.state={localCommentIDs:c("UFILocallyComposedCommentStore").getStateForInstance(b.props.comment.ufiinstanceid),randomInstanceID:Math.floor(d("Random").random()*1e4)};return b}babelHelpers.inheritsLoose(b,a);var e=b.prototype;e.$2=function(a){return a.photo_comment||a.video_comment||a.file_comment||a.attachment};e.$3=function(a,b){var c=this.props.allowCustomStickers?k:l,d,e,f;b>a?(f=c/b,d=a*f,e=b*f):(f=c/a,d=a*f,e=b*f);return{height:Math.round(d),width:Math.round(e)}};e.componentDidMount=function(){var a=this,b=this.$2(this.props.comment);b&&this.renderAttachment(b);this.$1=new(c("SubscriptionsHandler"))();this.$1.addSubscriptions(c("UFILocallyComposedCommentStore").addListener(function(){a.setState({localCommentIDs:c("UFILocallyComposedCommentStore").getStateForInstance(a.props.comment.ufiinstanceid)})}))};e.shouldComponentUpdate=function(a,b){b=this.$2(this.props.comment);a=this.$2(a.comment);if(!b&&!a)return!1;if(!b||!a||b.markup!=a.markup)return!0;else return!1};e.componentDidUpdate=function(a){a=this.$2(this.props.comment);if(!a)return;a.type!=="sticker"&&a.type!=="photo"&&this.renderAttachment(a)};e.componentWillUnmount=function(){if(this.refs&&this.refs.contents){var a=d("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(this.refs.contents);c("DOM").empty(a)}this.$1&&this.$1.release()};e.renderAttachment=function(a){if(a&&this.refs&&this.refs.contents&&a.markup){var b=a.markup;c("HTML").isHTML(b.markup)&&(b=c("HTML").replaceJSONWrapper(b.markup).getRootNode());var e=b.parentNode,f=d("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(this.refs.contents);e&&e!==f&&(b=b.cloneNode(!0));if(this.props.disableTheater){e=b.querySelector('a[rel="theater"]');e&&c("DOM").setAttributes(e,{target:"_blank",rel:""})}c("DOM").setContent(f,b);if(a.type=="share"){e="_6m2";e=f&&d("CSS").hasClass(f,e)?f:d("DOMQuery").scry(f,"."+e)[0];e=e?e:f;e instanceof HTMLElement&&d("LitestandShareAttachment").init(e)}else a.type==="TIP_JAR_PAYMENT"&&d("GamesVideoFanSupportAttachmentHandler").registerFanSupportAttachment(b)}};e.renderSticker=function(a){var b=this.$3(Number(a.metadata.height),Number(a.metadata.width)),d=null,e=null;window.devicePixelRatio&&window.devicePixelRatio>1?(d=a.metadata.sprite_uri_2x,e=a.metadata.source_uri_2x):(d=a.metadata.sprite_uri,e=a.metadata.source_uri);return j.jsx(c("BootloadedComponent.react"),{accessibilityLabel:a.metadata.accessibilityLabel,bootloadPlaceholder:j.jsx(c("XUISpinner.react"),{}),bootloadLoader:c("JSResource")("Sticker.react").__setRef("UFICommentAttachment.react"),className:"UFICommentStickerAttachment",animationTrigger:"load_and_hover",frameCount:a.metadata.frameCount,frameRate:a.metadata.frameRate,framesPerCol:a.metadata.framesPerCol,framesPerRow:a.metadata.framesPerRow,spriteURI:d,sourceHeight:b.height,sourceURI:e,sourceWidth:b.width,testID:m})};e.renderPhoto=function(a){var b="_2rn3 _4-eo";return j.jsx("div",{className:"_4iv9",children:j.jsx(c("Link.react"),{className:b,"data-testid":void 0,rel:"theater",href:a.metadata.url,children:j.jsx("div",{style:{height:a.metadata.height},children:j.jsx(c("Image.react"),{src:a.metadata.preview_uri})})})})};e.renderShare=function(a){return j.jsx(c("BootloadedComponent.react"),{bootloadPlaceholder:j.jsx("span",{}),bootloadLoader:c("JSResource")("UFILiveCommentLinkPreview.react").__setRef("UFICommentAttachment.react"),attachment:a})};e.renderLivePlaceInfo=function(a){return j.jsx(c("BootloadedComponent.react"),{bootloadPlaceholder:j.jsx("span",{}),bootloadLoader:c("JSResource")("PlaceListLiveCommentAttachment.react").__setRef("UFICommentAttachment.react"),commentID:this.props.comment.fbid,data:a,postID:this.props.comment.ftentidentifier})};e.renderPlaceInfo=function(a){var b=this.props.comment.__typename==="local"||this.state.localCommentIDs[this.props.comment.id];return j.jsx(c("BootloadedComponent.react"),babelHelpers["extends"]({bootloadPlaceholder:j.jsx(c("XUISpinner.react"),{}),bootloadLoader:c("JSResource")("MultiPlacePageInfoCard.react").__setRef("UFICommentAttachment.react"),isLocallyComposed:b,postID:this.props.comment.ftentidentifier,actorID:this.props.comment.author},a.props))};e.renderUpsellInfo=function(a){return j.jsx("span",{})};e.$4=function(a){return a+"_comment_attachment_"+this.props.comment.id+this.state.randomInstanceID};e.render=function(){var a=this.$2(this.props.comment);if(a)if(a.type==="sticker")return this.renderSticker(a);else if(a.type==="gif"||a.type==="donation"||a.type==="TIP_JAR_PAYMENT"||a.type==="chat_command_result"||a.type==="marketplace_ecomm_product_item")return j.jsx("div",{ref:c("stringRefShim")(this,"contents"),id:this.$4(a.type),children:j.jsx(c("XUISpinner.react"),{})});else if(a.type==="photo")return this.renderPhoto(a);else if(a.type==="live_share")return this.renderShare(a);else if(a.type=="comment_place_info")return this.renderPlaceInfo(a);else if(a.type=="live_comment_place_info")return this.renderLivePlaceInfo(a);else if(a.type=="upsell_info")return this.renderUpsellInfo(a);else return j.jsx("div",{ref:c("stringRefShim")(this,"contents")});return j.jsx("span",{})};return b}(j.Component);g["default"]=b}),98); __d("CommentsPluginComment.react",["cx","fbt","ix","ActorBio.react","Badge.react","CenteredContainer.react","CommentsPluginActions","CommentsPluginCommentActions.react","CommentsPluginComposerEdit.react","CommentsPluginComposerReply.react","CommentsPluginMenu.react","CommentsPluginProfilePicture.react","CommentsPluginStore","CommentsPluginUFIActor.react","Image.react","Link.react","TruncatedTextWithEntities.react","UFI2CommentUtils","UFICommentAttachment.react","UFIImageBlock.react","XUIGrayText.react","XUISpinner.react","XUIText.react","joinClasses","linkifyEntityRange","nullthrows","react","stringRefShim"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l=k||d("react"),m=function(a){function b(){var b;for(var d=arguments.length,e=new Array(d),f=0;f0?l.jsx("div",{className:"_5yct _3-8y _3-96 _2ph-",children:this.state.loading?l.jsx(c("CenteredContainer.react"),{children:l.jsx(c("XUISpinner.react"),{size:"small"})}):l.jsxs(c("Link.react"),{onClick:this.$1,children:[l.jsx(c("XUIText.react"),{size:"body3",weight:"bold",children:f===1?i._(/*BTDS*/"Hi\u1ec3n th\u1ecb th\u00eam 1 ph\u1ea3n h\u1ed3i trong cu\u1ed9c tr\u00f2 chuy\u1ec7n n\u00e0y"):i._(/*BTDS*/"Hi\u1ec3n th\u1ecb th\u00eam {number of replies} ph\u1ea3n h\u1ed3i trong cu\u1ed9c tr\u00f2 chuy\u1ec7n n\u00e0y",[i._param("number of replies",f)])}),l.jsx(c("Image.react"),{className:"_2pir",align:"top",src:j("512929")})]})}):null,b.composer?l.jsx("div",{className:"_3-8y",children:l.jsx(c("CommentsPluginComposerReply.react"),{commentID:this.props.commentID})}):null]})};return b}(l.Component);g["default"]=m}),226); __d("CommentsPluginLoadMore.react",["cx","fbt","CenteredContainer.react","CommentsPluginActions","CommentsPluginStore","XUIButton.react","XUISpinner.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");a=function(a){function b(b,d){var e;e=a.call(this,b,d)||this;e.$1=function(){c("CommentsPluginActions").showMoreComments(),e.setState({loading:!0}),c("CommentsPluginStore").addListener("moreCommentsCompleted",function(){e.setState({loading:!1}),c("CommentsPluginStore").removeCurrentListener()})};e.state={loading:!1};return e}babelHelpers.inheritsLoose(b,a);var d=b.prototype;d.render=function(){var a=c("CommentsPluginStore").getUnloadedCommentsCount();if(!c("CommentsPluginStore").hasUnloadedComments()||a<1)return null;if(this.state.loading)return k.jsx(c("CenteredContainer.react"),{className:"_ndl",children:k.jsx(c("XUISpinner.react"),{size:"large"})});var b=c("CommentsPluginStore").getPageSize();a=a0?b("getElementPosition")(d[0]):null;e=e.length>0?b("getElementPosition")(e[0]):null;return Math.max(a,d?d.y+d.height+1:0,e?e.height:0)},"resize.iframe",!1).resize().auto();b("CommentsPluginStore").addListener("change",function(){a.forceUpdate()});b("CommentsPluginStore").isOptinReturn()&&b("CommentsPluginActions").restorePreviousState()};d.$1=function(){return b("CommentsPluginStore").isThreadClosed()||b("CommentsPluginStore").shouldSwitchAccount()};d.render=function(){return j.jsx("div",{className:b("joinClasses")("_56q9",this.props.className),children:j.jsxs("div",{className:"_2pi8",children:[j.jsx(b("CommentsPluginHeader.react"),{}),this.$1()?j.jsx(b("CommentsPluginNotice.react"),{}):b("CommentsPluginStore").isDeeplinkComment()?null:j.jsx(b("CommentsPluginComposerComment.react"),{}),j.jsx(b("CommentsPluginListing.react"),{}),j.jsx(b("CommentsPluginFooter.react"),{})]})})};return c}(j.Component);e.exports=c}),130); __d("DocumentCompositeMentionsSource",["invariant","createCancelableFunction","emptyFunction","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){var c=a.getCharacterList().toSeq().slice(0,b).reverse().takeWhile(function(a){return a.getEntity()===null}).count();return a.getText().slice(b-c,b)}a=function(){function a(a){a.length>0||g(0,1514),this.$1=a,this.$2=!1,this.$3=null}var c=a.prototype;c.bootstrap=function(a){if(this.$2)return;this.$2=!0;a=a||b("emptyFunction");var c=this.$1.length;function d(){c--,c||a&&a()}this.$1.forEach(function(a){a.bootstrap(d)})};c.search=function(a,c,d){var e=c.getAnchorKey();a=a.getBlockForKey(e);var f=b("createCancelableFunction")(d);this.$4(h(a,c.getAnchorOffset()),f);return{remove:function(){f.cancel()}}};c.searchText=function(a,c){var d=b("createCancelableFunction")(c);this.$4(a,d);return{remove:function(){d.cancel()}}};c.$4=function(a,c){var d=this,e=this.$1.length,f,g;for(var h=0;h=3&&a.getTitle().startsWith(d+b)||b==c("TokenizeUtil").tokenize(a.getTitle())[0];else return b.length>=5||c("TokenizeUtil").isExactMatch(b,a.getTitle());else if(a.getType()==="page")return e.connectedPage&&(b.length>=5||c("TokenizeUtil").isExactMatch(b,a.getTitle()));else return!1}var h={};g["default"]=a}),98);